D
D
David2016-10-17 18:00:50
git
David, 2016-10-17 18:00:50

Git. HEAD separated from xxxxxx?

Hello!
Tell me how to solve this problem:
I have two more commits in the local repository than on the remote one, but I can’t push them. git says what Everything up-to-date
am i doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
David, 2016-10-18
@MiragePresent

Created a new branch for the detached HEAD and then merge accordingly

I
Igor Sivitsky, 2019-01-20
@fenek644

If you were in the master, then you need to return to this branch (that is, there must be some kind of link to it in the HEAD), this is done by such a command

git cjeckout master
. If you were in another branch, then you need to write the name of this branch. If there are no branches on the commit from which you want to move, then you need to create it (that is, start it from this commit) and then go to it - just like to the master. (
git checkout nameTwigs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question