만약 오늘이 2024년 9월 14일이고, 커밋은 9월 15일 12시 30분으로 하고 싶다면, 아래 명령어를 쓴다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT_COMMITTER_DATE="2024-09-15 12:30:00" git commit -m "first commit" --date="2024-09-15 12:30:00" |
그리고, 깃허브에 푸시를 한다면, 웹에서 나타나는 시간은 해당 날짜 전까지는 now로 찍히게 된다.
참고
'노트정리 > 버전관리 version control' 카테고리의 다른 글
git log에 자동으로 그래프 표시하기 (0) | 2024.12.21 |
---|---|
git clone 명령어가 멈추는 문제 해결법 두번째 (0) | 2024.12.15 |
윈도우에서 git clone 명령어가 멈출 때 해결법 (0) | 2024.10.25 |
포트리 키링 에러 (poetry keyring error) (0) | 2024.10.19 |
내가 작성한 깃허브 지스트(github gist)에서 특정 키워드 검색 (0) | 2024.08.17 |
git bash 에서 conda activate 사용법 (0) | 2020.12.28 |