A collection of aliases and tools for git
Aliases to basic commands (All defined at personal_aliases.sh):
ga # git add
ga # git add -i
gc # git commit
gca # git commit --amend
gflog # git reflog with a pretty format
Commands related to log history
gh # show commit graph, similar to git log --oneline --graph
Commands related to push commits
gp # alias to git push
gt-send-to-branch # uses a fuzzy-finder to select a branch
- Save and track each branch update
- Suggest commit message from "git diff --cached"
Install using gil-install command
cd /<path-to>/git-tools/
gil-install -i
Add the following lines to your bashrc:
export GIT_TOOLS_DIR=/<path-to>/git-tools/
source $GIT_TOOLS_DIR/bashrc.sh
And you should also define an alias default-fuzzy-finder to the fuzzy-finder you want to use. For example:
alias default-fuzzy-finder='fzf'
Feel free to submit PRs. I will do my best to review and merge them if I consider them essential.
- awesome-git-addons: very interesting commands you should check out:
- recent
- git-standup
- git interactive rebase tool
- diff-so-fancy
- awesome-git
- method_log: tool to analyze the change history of methods (see more on this blog post)