adrianogil / git-tools

A collection of small tools for git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-tools

A collection of aliases and tools for git

Commands

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

Planned features

  • Save and track each branch update
  • Suggest commit message from "git diff --cached"

Installation

Recommended setup

Install using gil-install command

cd /<path-to>/git-tools/
gil-install -i

Manual setup

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'

Contributing

Feel free to submit PRs. I will do my best to review and merge them if I consider them essential.

Interesting Links

About

A collection of small tools for git

License:MIT License


Languages

Language:Shell 59.2%Language:Python 40.8%