Git: change an older commit with rebase interactive
HTML-код
- Опубликовано: 20 сен 2024
- This video is not about the very last commit. It is about an older commit which needs to be changed differently. This video will help you to keep your commit history clean.
This is so good, no more googling this stuff up anymore. Also learned "git log - -oneline" ❤️
Maybe you could write down (or mention next time) the vim commands that you were using to copy paste things in interactive mode and exit vim after 🙏
Thanks Rich! Yeah I will do that in the next video - I used nano as editor. For nano the command to cut is Ctrl + k, to paste Ctrl + u.
thanks a lot, this is what I wanted
simple and to the point :)
Great video. Thanks for sharing.
Thx! This answers the question I had regarding reordering
Thank you, Dave 🙏
thank you.
7:10 how can we safe our operations in interactive mod? just pressing ENTER is not working for me.
You are absolutely right, didn't explain that clearly. Thanks for asking. With the editor I'm using in the video (nano) for saving our made changes, we need to:
1. press ctrl + x-key (for exit)
2. press y-key (for yes)
3. press enter-key.
Does this work for you? Or do you use a different editor?
@@davem.6481 i am using xubuntu terminal.
ctrl + x is worked for exit.
but ctrl+y or just y seems ineffective.
when i pressed ctrl + x terminal said "save modifed buffers. yes or no". so in this way i was able to save.
@@davem.6481 how to save the changes plz explain for Ubuntu OS.
@@UTube4075 Hey did you try the explanation from above? They are meant for Ubuntu. Does ctrl + x-key work, or how far do you come? As @Stalan wrote, for him it worked with "yes" instead of just "y" for the second step.
@@davem.6481 ctrl+x worked for me.
This is for exit the editor, when do so it ask for to save or not. By pressing Y it save the changes we made and finally hit the enter button.
Thank you mate for the video.
After rebase and move my commit position line with fixup and save, I have another branch tree point for mater branch and another for HEAD.
Hey do you have a question, why it happens like this? If yes could you give more detailed steps what you did?
can we sign the older commit ??
Hey =), I don‘t understand what you mean. Could you provide more details?
@@davem.6481
1. I need to get all unsigned commits
2. GPG Sign them
@@testermobile834 I am sorry I have no clue how to do that. Hopefully somebody else can help you with that. Good success!