-83,6 +83,13 |
$ git commit -m "Truncate history" |
$ git rebase --onto temp A master |
}}} |
첫번째 커밋을 리셋하고 싶을 때 |
* https://stackoverflow.com/questions/6632191/how-to-revert-initial-git-commit |
* <code>git update-ref -d HEAD</code> |
== # 딱 부러진 해결책을 못 찾은 상태 == |
로컬 저장소에서 한 파일에 '특정한 변경' 부분만 따로 유지하되, 원격으로 push할 때 전달되지 않게 막고 싶은 경우: |