If the commit you want to fix isn’t the most recent one:
1. git rebase --interactive $parent_of_flawed_commit
If you want to fix several flawed commits, pass the parent of the oldest one of them.
2. An editor will come up, with a list of all commits since the one you gave.
1. Change pick to reword (or on old versions of Git, to edit) in front of any commits you want to fix.
2. Once you save, Git will replay the listed commits.
3. For each commit you want to reword, Git will drop you back into your
editor. For each commit you want to edit, Git drops you into the shell.
If you’re in the shell:
1. Change the commit in any way you like.
2. git commit --amend
3. git rebase --continue
Most
of this sequence will be explained to you by the output of the various
commands as you go. It’s very easy, you don’t need to memorise it – just
remember that git rebase --interactive lets you correct commits no
matter how long ago they were.
피드 구독하기:
댓글 (Atom)
void vscode/firefox open dialog not working
install nautilus
-
install niri emptty ghostty git ImageMagick xdg-desktop-portal brightnessctl curl cliphist cava wlsunset evolution-data-server install void-...
-
Requirements PC text editor vscode, notepad++, sublime text, atom, whatever... image editor gimp, MS paint, photoshop, ... too...
-
pro 많은 GUI 부품들 멀티플랫폼 con script 검색!!!. (전체 script검색이 귀찮음) vscode debug plugin이 업데이트 되면 좋을까? 분리.(include?기능 지원...) 문서화. GUI에서 선택할 수 있...
댓글 없음:
댓글 쓰기