When working with github, we usually do “push” and “pull” followed by “origin master” or “origin branch-name”. We can just use “git pull” or “git push” and will followed by the current branch.
For global push config using current:
1 | git config –global push.default current |
Example, we currently at branch “dev”. To push update, we can do:
1 | git push origin dev |
If we tracking dev branch using :
1 | git branch –set-upstream-to=origin/dev dev |
Then all we need just
1 | git push |