magnobiet
9/14/2015 - 8:44 PM

GIT.md

GIT

ssh-keygen -t rsa -b 4096                   # Generating a new SSH key
git checkout --ours                         # Resolv conflict using mine
git checkout --theirs                       # Resolv conflict using theirs

git reset --soft HEAD~1                     # Revert last commit
git log -1 HEAD                             # View last commit

git remote -v                               # View remote address
git remote set-url origin <new-project-url> # Change remove address

git rev-parse --verify HEAD                 # View last hash
git rev-parse --abbrev-ref HEAD             # View current branch

git update-index --assume-unchanged         # Assume files/folder as unchanged
git update-index --no-assume-unchanged      # Revert --assume-unchanged