کشفیات بی ارزش

Tuesday, July 4, 2017

Reset git commit timestamp

Put this in a bash file and run it.

 git filter-branch -f --env-filter \ 
   'if [ $GIT_COMMIT = 5a5fe3bafd3128a3aa6b2f4983b96fcc1287f027 ] 
   then 
     export GIT_AUTHOR_DATE="Sat Jul 1 19:01:20 2017" 
     export GIT_COMMITTER_DATE="Sat Jul 1 19:01:20 2017" 
   fi'
Posted by کاشف پاره‌وقت at 6:28 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

کاشف پاره‌وقت
View my complete profile

Blog Archive

  • ►  2020 (1)
    • ►  May (1)
  • ►  2018 (6)
    • ►  October (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  March (1)
  • ▼  2017 (12)
    • ►  October (6)
    • ►  August (1)
    • ▼  July (1)
      • Reset git commit timestamp
    • ►  April (2)
    • ►  March (2)
  • ►  2016 (6)
    • ►  October (1)
    • ►  September (1)
    • ►  July (1)
    • ►  June (2)
    • ►  February (1)
  • ►  2015 (12)
    • ►  October (1)
    • ►  September (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  February (1)
    • ►  January (5)
  • ►  2014 (21)
    • ►  December (4)
    • ►  November (6)
    • ►  October (11)
Simple theme. Powered by Blogger.