Git button initial head?

I made some changes to the file in the git repository, I transferred the files using git commit

Then I tried to push the master using git push origin master , which returned Everything up-to-date

I typed in a git push origin head , which seemed to work, although I'm not sure if I should do this. Previously, git push origin head always worked for me.

My question is: why don't git push origin master do anything and I need rollback and re-commit, then git push origin master ?

+3
git
Jul 31 2018-12-12T00:
source share
1 answer

If you are working on a development branch, then git push origin master will not do anything, because you asked him to insert the master branch. If you want to push your development branch, you need to run:

 git push origin development 

... or whatever you called a development branch. And after that, once you usually can run git push without additional arguments.

+1
Jul 31 '12 at 1:30
source share



All Articles