Z
Z
zlodiak2018-02-08 22:21:38
git
zlodiak, 2018-02-08 22:21:38

How to combine head and master?

My files have been in this state for some time now:

[email protected] /var/www/html/misc/tag $ git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
* 65db748 2018-02-08 | 1 (HEAD) [zlodiak]
* 5737dc6 2018-02-08 | sec (master) [zlodiak]
* 56359d3 2018-02-08 | f [zlodiak]

As you can see, head and master are not the same. And I would like to match and be on commit 65db748. Please advise what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
youngmysteriouslight, 2018-02-08
@zlodiak

git checkout master && git reset 65db748

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question