W
W
Web Lizard2016-02-09 15:56:20
git
Web Lizard, 2016-02-09 15:56:20

Problems with the git (source tree), what to do?

The essence of the problem is this:
I made some changes in the project, sent a commit. But now I decided to roll back to an earlier step. Rolled back. Made new changes, but now the commit doesn't want to be sent!
Gives an error message


git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -FC:\Users\Ildar\AppData\Local\Temp\fzpwhsfk.flt
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin "(detached from fcf216c):(detached from fcf216c)"
Pushing to https://[email protected]/trix-studio/lima...
fatal: remote part of refspec is not a valid name in (detached from fcf216c):(detached from fcf216c)
Unexpected end of command stream
Done with errors, see above.

What do I need to do so that I can commit new commits normally?
9cbdca6c91.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
ManWithBear, 2016-02-09
@ManWithBear

git checkout -b myAwesomeFeature
git commit -m "I make some awesome changes"
git checkout master
git merge --no-ff myAwesomeFeature
git branch -d myAwesomeFeature

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question