How do I make the same git commit as I did on another branch using that commit id? [closed]
I made a big git mess. The commits are somewhere in git but I dont know where, I can see them using git show . I'm building a the branch up from scratch and want to make the same commit as I did before to save having to rewrite all the code from git show.
git
closed as too broad by jonrsharpe, Cindy Meister, greg-449, Mark Rotteveel, Matthieu Brucher Nov 13 '18 at 21:17
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I made a big git mess. The commits are somewhere in git but I dont know where, I can see them using git show . I'm building a the branch up from scratch and want to make the same commit as I did before to save having to rewrite all the code from git show.
git
closed as too broad by jonrsharpe, Cindy Meister, greg-449, Mark Rotteveel, Matthieu Brucher Nov 13 '18 at 21:17
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Please describe better your situation, for example provide a graph of your current branches, will you throw away the other branch?
– David Lemon
Nov 13 '18 at 12:22
add a comment |
I made a big git mess. The commits are somewhere in git but I dont know where, I can see them using git show . I'm building a the branch up from scratch and want to make the same commit as I did before to save having to rewrite all the code from git show.
git
I made a big git mess. The commits are somewhere in git but I dont know where, I can see them using git show . I'm building a the branch up from scratch and want to make the same commit as I did before to save having to rewrite all the code from git show.
git
git
asked Nov 13 '18 at 12:18
Milan LakhaniMilan Lakhani
11
11
closed as too broad by jonrsharpe, Cindy Meister, greg-449, Mark Rotteveel, Matthieu Brucher Nov 13 '18 at 21:17
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as too broad by jonrsharpe, Cindy Meister, greg-449, Mark Rotteveel, Matthieu Brucher Nov 13 '18 at 21:17
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Please describe better your situation, for example provide a graph of your current branches, will you throw away the other branch?
– David Lemon
Nov 13 '18 at 12:22
add a comment |
Please describe better your situation, for example provide a graph of your current branches, will you throw away the other branch?
– David Lemon
Nov 13 '18 at 12:22
Please describe better your situation, for example provide a graph of your current branches, will you throw away the other branch?
– David Lemon
Nov 13 '18 at 12:22
Please describe better your situation, for example provide a graph of your current branches, will you throw away the other branch?
– David Lemon
Nov 13 '18 at 12:22
add a comment |
1 Answer
1
active
oldest
votes
Git cherry-pick command does exactly that.
From the documentation:
Apply the changes introduced by some existing commits
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Git cherry-pick command does exactly that.
From the documentation:
Apply the changes introduced by some existing commits
add a comment |
Git cherry-pick command does exactly that.
From the documentation:
Apply the changes introduced by some existing commits
add a comment |
Git cherry-pick command does exactly that.
From the documentation:
Apply the changes introduced by some existing commits
Git cherry-pick command does exactly that.
From the documentation:
Apply the changes introduced by some existing commits
answered Nov 13 '18 at 12:39
Gonzalo MatheuGonzalo Matheu
3,22432031
3,22432031
add a comment |
add a comment |
Please describe better your situation, for example provide a graph of your current branches, will you throw away the other branch?
– David Lemon
Nov 13 '18 at 12:22