Config (first time setup)
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config --global core.editor vim
git config --list
git config user.name
git config user.email
git help config
Using GitHub? Setup SSH keys tutorial
git config --list --show-origin
It tells you where all the values are coming from. Thanks @jessitron!
# syntax
git checkout -b <branch> --track <remote>/<branch>
# ex
git checkout -b release/core47 origin/release/core47
git config credential.helper store #stores the credentials indefinitely.
git config credential.helper 'cache --timeout=3600' #stores for 60 minutes
note: HEAD~8 means squash the last 8 commits
git status
git reset --hard HEAD~8
git merge --squash HEAD@{1}
git commit
git push
git push --force
git fetch origin
git reset --hard origin/master