https://github.com/adrianogil/git-tools
A collection of small tools for git
https://github.com/adrianogil/git-tools
Last synced: 3 months ago
JSON representation
A collection of small tools for git
- Host: GitHub
- URL: https://github.com/adrianogil/git-tools
- Owner: adrianogil
- License: mit
- Created: 2018-02-21T09:14:47.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-05-25T18:47:36.000Z (8 months ago)
- Last Synced: 2025-05-25T19:41:29.685Z (8 months ago)
- Language: Shell
- Size: 122 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/adrianogil/gil-tools)
```
cd //git-tools/
gil-install -i
```
### Manual setup
Add the following lines to your bashrc:
```
export GIT_TOOLS_DIR=//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:
```bash
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
* [awesome-git-addons](https://github.com/stevemao/awesome-git-addons): very interesting commands you should check out:
* recent
* git-standup
* [git interactive rebase tool](https://github.com/MitMaro/git-interactive-rebase-tool)
* [diff-so-fancy](https://github.com/so-fancy/diff-so-fancy)
* [awesome-git](https://github.com/dictcp/awesome-git)
* [method_log](https://github.com/freerange/method_log): tool to analyze the change history of methods (see more on [this blog post](https://www.urbanautomaton.com/blog/2014/09/22/tracking-method-history-in-git/))