git shortcuts 1

git shortcuts

# add shortcuts for common git commands
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status

Here is what the above code is Doing:
1. git config –global user.name “Your Name”
– This sets the author name in your global configuration file to be used for all repositories.
2. git config –global user.email “your_email@example.com”
– This sets the author email in your global configuration file to be used for all repositories.
3. git config –global color.ui true
– This sets your global configuration file to always use colors, no matter what repository you’re using.
4. git config –global alias.co checkout
– This sets up an alias named co that executes a git checkout.
5. git config –global alias.br branch
– This sets up an alias named br that executes a git branch.
6. git config –global alias.ci commit
– This sets up an alias named ci that executes a git commit.
7. git config –global alias.st status
– This sets up an alias named st that executes a git status.

Similar Posts