how to git push to current branch 1

how to git push to current branch

git config --global push.default current

Here is what the above code is Doing:
1. git config –global user.name “Your Name”
– This sets the author name in all local repositories.
2. git config –global user.email “your_email@example.com”
– This sets the author email in all local repositories.
3. git config –global color.ui auto
– This sets up Git to colorize its output.
4. git config –global push.default current
– This sets the current branch to push when you use git push without specifying a branch.

Similar Posts