Skip to content

Instantly share code, notes, and snippets.

@jorwan
Forked from frangeris/commands.md
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save jorwan/602e07d2bcd7828f5659 to your computer and use it in GitHub Desktop.

Select an option

Save jorwan/602e07d2bcd7828f5659 to your computer and use it in GitHub Desktop.
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>
[TRACK CHANGES] git update-index --assume-unchanged <file>
[DONT TRACK CHANGES] git update-index --no-assume-unchanged <file>
[.gitignore CLEANING UP]
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] git config core.fileMode false
[CHECKOUT DOESN'T WORK] git config --global core.autocrlf false
[GIT COLOR] git config --global color.ui true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment