How do I make the same git commit as I did on another branch using that commit id? [closed]












-1















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.










share|improve this 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
















-1















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.










share|improve this 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














-1












-1








-1








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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












1 Answer
1






active

oldest

votes


















1














Git cherry-pick command does exactly that.



From the documentation:




Apply the changes introduced by some existing commits







share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Git cherry-pick command does exactly that.



    From the documentation:




    Apply the changes introduced by some existing commits







    share|improve this answer




























      1














      Git cherry-pick command does exactly that.



      From the documentation:




      Apply the changes introduced by some existing commits







      share|improve this answer


























        1












        1








        1







        Git cherry-pick command does exactly that.



        From the documentation:




        Apply the changes introduced by some existing commits







        share|improve this answer













        Git cherry-pick command does exactly that.



        From the documentation:




        Apply the changes introduced by some existing commits








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 13 '18 at 12:39









        Gonzalo MatheuGonzalo Matheu

        3,22432031




        3,22432031















            Popular posts from this blog

            Florida Star v. B. J. F.

            Error while running script in elastic search , gateway timeout

            Adding quotations to stringified JSON object values