0

I have the situation shown in the picture:

gitk screenshot

How do I move the master head to point to the top commit (Added preferences) because currently I cannot push to the remote repository as it says everything up to date (expected, since master is not pointing to the most recent commit)

0

2 Answers 2

2

What about:

$ git checkout master
$ git merge --ff-only <hash of topmost commit>
2

While on the "Added preferences" commit, try git merge master. Depending on whether you want fast-worward or not - you may add --ff flag.

1
  • I have tried that before and it just says 'Already up-to-date'. This happens whether I fast forward or not
    – texasflood
    Commented Nov 27, 2014 at 16:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.