0

I am having trouble in pushing my commits to the online git repository

.

When I use git push -u origin master, it only pushes up to point "Components Part 2" while the recent commit is "test". I don't get why is it not pushing every commit? And how can I solve this problem? Please explain.

Sunil Shah
  • 1,000
  • 1
  • 7
  • 17

1 Answers1

1

Your HEAD is detached from master. This means HEAD is not attached to any branch i.e. HEAD points directly to some commit.

That is why whatever commit pointing to master is getting pushed and not your recent commit.

Refer this to know more and fix this.

Patrick
  • 1,635
  • 2
  • 13
  • 23