[Git] git game - 2 argument rebase, ^ with number
2024. 7. 9. 11:20ㆍGit
728x90
반응형
SMALL
git rebase [-i] [destination commit] [source commit]
dest commit에 source commit을 정렬하여 정리
git checkout [object commit((^ | ~)number?)*]

git checkout HEAD~^2~2
git game 정답


git rebase -i HEAD bugFix
git rebase -i HEAD side
git rebase -i HEAD another
git branch -f main HEAD
or
git rebase main bugFix
git rebase bugFix side
git rebase side another
git rebase another main


git checkout HEAD^^2^
git branch bugWork
git checkout main
or
git branch bugWork HEAD^^2^


git checkout one
git cherry-pick c4 c3 c2
git checkout two
git cherry-pick c5 c4 c3 c2
git branch -f three c2728x90
반응형
LIST
'Git' 카테고리의 다른 글
| [Git] git game - fakeTeamwork, push (0) | 2024.07.10 |
|---|---|
| [Git] git game - clone, fetch, pull (0) | 2024.07.09 |
| [Git] git game - commit 순서 변경/내용 수정, tag, describe (0) | 2024.07.09 |
| [Git] git game - cherry-pick, interactive rebase (0) | 2024.07.08 |
| [Git] git game - HEAD, branch -f, reset, revert (0) | 2024.07.08 |