forked from porn/gitconfig few aliases that speed me up
git br
git co master
git up
git unfuck
git mkbranch ABC-123-some-featuregit rb
git rbc
git rbagit ci
git cpand some more
- Download or clone the repository to some directory (e.g.
~/github/michondr/gitconfig/).
cd
mkdir -p github/michondr
cd github/michondr
git clone https://github.com/michondr/gitconfig.git
- Include the gitconfig file in your
~/.gitconfig:
[include]
path = ~/github/michondr/gitconfig/gitconfig
...
This way your personal changes won't overwrite the file when you use:
git config --global user.name "James Bond"
git config --global user.email "[email protected]"
Feel free to use my collection of file patterns I don't want to track:
- Symlink the global gitignore file to your home directory
ln -s ~/github/michondr/gitignore.global ~/.gitignore