devnoong.log
728x90

 

작업 디렉토리로 이동

현재 브랜치에 commit 내역 없이 하나의 commit 내역 이동

git cherry-pick --no-commit <commit_hash>
git reset

 

현재 브랜치에 commit 내역 없이 여러개 commit  내역 이동 

git cherry-pick --no-commit --no-apply  <commit_hash1>^..<commit_hash2>
git reset

 

스테이징 영역으로 이동

현재 브랜치에 commit 내역 없이 하나의 commit 내역 이동 

git cherry-pick --no-commit <commit_hash>

현재 브랜치에 commit 내역 없이 여러개 commit 내역 이동

git cherry-pick --no-commit --no-apply  <commit_hash1>^..<commit_hash2>

 

commit 영역으로 이동

현재 브랜치에 commit 내역 복사

git cherry-pick  <commit_hash>

 

 

728x90