티스토리 뷰

구버전 팁

git commit 날짜 바꾸기

killog 2020. 10. 6. 09:34
반응형
  1. 마지막 Commit 날짜를 현재 날짜로 설정

    git commit --amend --no-edit --date "$(date)"

  2. 마지막 Commit 날짜를 내가 원하는 날짜로 설정

    git commit --amend --no-edit --date "Mon 20 Oct 2020 20:19:19 KST"

 

 

 

 

참고링크

kwonsoonwoo.github.io/git/2019/08/16/git-commit-%EB%82%A0%EC%A7%9C-%EB%B0%94%EA%BE%B8%EA%B8%B0.html

반응형
댓글