-
-
Save jorwan/602e07d2bcd7828f5659 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GIT | |
| === | |
| [PUBLIC REPO] https://www.kernel.org/pub/software/scm/git/ | |
| [DELETE ALL RM] git rm $(git ls-files --deleted) | |
| [DELETE BRANCH DOWN] git branch <branchName> --delete | |
| [DELETE BRANCH UP] git push origin --delete <branchName> | |
| [DONT TRACK CHANGES] git update-index --assume-unchanged <file> | |
| [TRACK CHANGES] git update-index --no-assume-unchanged <file> | |
| [LIST TRACKS] git ls-files -v | grep '^[[:lower:]]' | |
| [CLEANING UP CACHE WHEN GIT IGNORE FAIL] | |
| git rm -r --cached . | |
| git add . | |
| git commit -m "Fixed untracked files" | |
| [CLONE BRANCH] git clone -b <branch> git@<domain>:<user>/<myproject>.git | |
| [IGNORE MODE FILE] git config core.fileMode false | |
| [CHECKOUT DOESN'T WORK] git config --global core.autocrlf false | |
| [GIT COLOR] git config --global color.ui true | |
| [ROLLING BACK A COMMIT] git reset --soft 'HEAD^' | |
| [DISCARD LAST COMMIT] git reset HEAD --hard | |
| git reset --hard origin/master | |
| [ACCEPT THEIRS MERGE] git checkout --theirs | |
| [ACCEPT OURS MERGE] git checkout --ours | |
| [REMOVE REMOTE] git remote rm <remote> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment