W
W
Wasya UK2019-11-13 14:39:48
git
Wasya UK, 2019-11-13 14:39:48

How to fix commits?

made a minor commit on github, and then on a local project, without downloading the updated project from github. I'm trying to upload, but want to update the branch. I upload using pull, but all changes are deleted. How to add an old commit from github, but move to a new one from a local project? (Not really in this question, sorry for the wording)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wasya UK, 2019-11-13
@dmc1989

did this:
git pull origin master
git mergetool
git push origin HEAD:refs/heads/bf66cec

E
Egor Zhivagin, 2019-11-13
@Krasnodar_etc

git add .
git commit -m "commit name"
git pull
// если есть конфликты, они разруливаются и коммитятся вот тут
git push

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question