devnoong.log
728x90

 

1. 작업 디렉토리로 이동

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

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

 

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

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

 

2. 스테이징 영역으로 이동

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

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

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

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

3.  

4. commit 영역으로 이동

4.1. 현재 브랜치에 commit 내역 복사

<bash />
git cherry-pick <commit_hash>

 

 

728x90