@lonzo Git push lets you update the remote refs with the local refs, along with the objects that complete the given refs. If the local branch does not specify where to push to i.e remote configuration, it defaults to origin. When making a git push, you can push with arguments like –all, –mirrror, –tags e.t.c otherwise the configuration in the push. the default will be used.
If the current branch, is pushed to the upstream branch which does not have the same name as the local one, the push is aborted as a safety measure. The refs/heads namespace will only accept commit objects, and updates only if they can be fast-forwarded.
A few git arguments:
Usually, the git push command will be looks like this:
1
|
git push -u origin master |