- Get the commit ID of the previous commit
git log --oneline
- Revert commit (keeping changes to files intact)
git reset --soft <prev_id>
git reset HEAD <file>
git checkout -- <file>
git reset --hard
git branch
git branch - a
git checkout <branch_name>
git checkout tags/<tag_version>
git branch <branch_name>
git branch -d <branch_name>
git lfs install
Start tracking a large file using lfs. .gitattributes
is modified after this point
git lfs track large_file_name
Add both to git
git add large_file_name .gitattributes
Commit
git commit -m 'generic commit message'
Push
git push
git rm <file>
git commit -m '<message>'
git commit -am '<message>'
git add -u .
git add -u