[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with git push
From: |
Bertrand Bordage |
Subject: |
Re: Problem with git push |
Date: |
Thu, 22 Sep 2011 14:40:44 +0200 |
The commit you want to push must follow origin/master.
If it does, just do:
git push --dry-run origin [hash_of_the_commit]:master
This will push this single commit.
If not, you have to rebase so that the commit follows origin/master:
git rebase -i origin
An editor opens, where you can change the order of the commits:
pick [small_hash1] [name1]
pick [small_hash2] [name2]
pick [small_hash2] [name2]
Rewrite this list so that the commit you want to push is on top.
Then git push origin [hash]:master
Bertrand
- Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, David Kastrup, 2011/09/22
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, Bertrand Bordage, 2011/09/22
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push,
Bertrand Bordage <=
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, Janek Warchoł, 2011/09/22
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, Reinhold Kainhofer, 2011/09/22
Re: Problem with git push, Reinhold Kainhofer, 2011/09/22