Reputation: 815
From which place git init gets default files?
I always want something in my .git/config file instead of adding shortcuts every time.
example
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
Thanks.
Upvotes: 1
Views: 357
Reputation: 19206
You can set up some global default aliases in your ~/.gitconfig file.
git config --global alias.st status
git config --global alias.ci commit
git config --global alias.co checkout
...
Upvotes: 6