Git commands that have proven to be very useful for developers
git config --global user.name "John Doe"
git config --global user.mail "johndoe@domain.com"
git config --local user.name "John Doe"
git config --local user.mail "johndoe@domain.com"
git config --global --unset-all user.name
git config --global --list
git config --global --replace-all user.name "New User Name"
git config core.fileMode false
git config --global core.autocrlf true
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:proxy_port
git config --global credential.helper store
git remote -v
git remote rm <remote>
git push <remote> --all
git branch
git branch --all
git checkout <branch>
git branch -d <branch>
git branch -u <remote>/<branch>
git remote prune <remote>
git branch -d -r <remote>/<branch>
git push <remote> --delete <branch>
git push <remote> :<branch>
git push <remote> --tags
git push --follow-tags
git tag -d <tag-name>
git push --delete <remote> tagName
git show <commit-sha>:relative/path/to/file/inside/repo
git show <commit-sha>:relative/path/to/file/inside/repo > /new/path/to/file/content/at/selected/commit
git log -1
git log --decorate --graph -5
git show git log --author=bob | grep ^commit | awk -F ' ' '{print $2}'