- Create a branch:
git checkout -b branch_name
- Push a branch to remote:
git push -u origin branch_name
- Pull a branch from remote:
git checkout --track origin/branch_name
- Revert some files to their previous version:
git checkout commit-hashcode~1 -- file1 file2 file3
- Revert some files to a specific commit: git checkout commit-hashcode file1 file2 file3