Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iaseth/gitinit

My gitconfig initial setup.
https://github.com/iaseth/gitinit

git gitconfig github gitignore gitinit gitlab

Last synced: 26 days ago
JSON representation

My gitconfig initial setup.

Awesome Lists containing this project

README

        

# gitinit

* Set up my username and email:
```
git config --global user.email "[email protected]"
git config --global user.name "Ankur Seth"
```

* Set up common aliases:
```
git config --global alias.i init
git config --global alias.a add
git config --global alias.b branch

git config --global alias.co checkout
git config --global alias.cob "checkout -b"

git config --global alias.c commit
git config --global alias.cm "commit -m"

git config --global alias.d diff
git config --global alias.dc "diff --cached"
git config --global alias.ds "diff --stat"

git config --global alias.l log
git config --global alias.ll "log --oneline"
git config --global alias.last "log -1 HEAD --stat"

git config --global alias.s status

git config --global alias.ll pull
git config --global alias.p push
git config --global alias.p0 "push -u origin master"
```

* Set up other options:
```
git config --global core.autocrlf false
git config --global init.defaultBranch master
```