Put this line in your ~/.bashrc or ~/.bash_profile
export PS1="\h:\W \u\$(__git_ps1 \" (%s) \")\$ "
git config --global alias.co checkout
git config --global alias.st status
- Go back to last Git branch
git checkout -
- Add changes to git hunk by hunk
git add - p
- Search branch name for Git commit hash id
git branch --contains <sha_commit_id>
- Prune remote branch
git remote prune origin