Answer the question
In order to leave comments, you need to log in
Git and github: Not pushing changes to remote repository
I made a commit, uploaded it to a remote repository, then rolled back to the previous commit: git checkout a8801ee
Made changes to the project and created a few more commits. Now when I try to check out new commits to a remote repository using git pust origin master
I get the message: Everything up-to-date
Although my git log is --pretty=format:\"%h %ad | %s%d [%an]\" -- graph --date=short says:
* 07ff650 2014-03-28 | redact tests ajax cart (HEAD) [Ivan Trofimov]
* 19f844c 2014-03-28 | new .gitignore for netbeans [Ivan Trofimov]
* a8801ee 2014-03-27 | Modified gitignore [Ivan Trofimov]
* 89910c7 2014-03-27 | Generate Orders DB table [Ivan Trofimov]
* 4f7e576 2014-03-27 | new tests for ajax-order [Ivan Trofimov]
* 43badc1 2014-03-27 | Cart in left part on site (#SIDE) [Ivan Trofimov]
* 6e9e4ef 2014-03-26 | Remove from cart [Ivan Trofimov]
* 225d152 2014-03-26 | New Cart [Ivan Trofimov]
* 84cfcd3 2014-03-25 | Cart [Ivan Trofimov]
* 2286d31 2014-03-25 | New frontend (Full commit) [Ivan Trofimov]
* 311022e 2014-03-24 | Frontend catalog and new functional tests [Ivan Trofimov]
* 291a4c2 2014-03-24 | New Product title validation (<= 10 characters in Title) [Ivan Trofimov]
* b302ccf 2014-03-24 | New tests for Product model [Ivan Trofimov]
* 44e0ebe 2014-03-19 | Page 106 [Ivan Trofimov]
* 9eb588b 2014-03-19 | No Cyrillic [Ivan Trofimov]
* f3a744b 2014-03-18 | Validation for Product-form and new Tests [Ivan Trofimov]
* 62d6b55 2014-03-18 | Init [Ivan Trofimov]
Answer the question
In order to leave comments, you need to log in
git checkout a8801ee is not a revert, it's just you jumping to a specific commit. You can then fork from it and so on.
What you want to do goes something like this:
# берем ветку
git checkout mybranch
# отказываемся от изменений
git reset --hard 123abc
# грохаем ветку в удаленном репозитории
git push origin :mybranch
# пушем ветку из локального репозитория
git push origin HEAD
You apparently did not merge the changes with the master. those. the master points to the commit that is already on the server. merge a8801ee with master and push changes..
if i understood the situation correctly..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question