Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # show commiter date and authot date
  4. git log --format=fuller
  5. # commit 0b4cbb6028d413b582c8710166ff66a3fc56f80e
  6. # Author: Dmytro Sokil <dmytro.sokil@gmail.com>
  7. # AuthorDate: Wed Aug 2 09:19:06 2017 +0300
  8. # Commit: Dmytro Sokil <dmytro.sokil@gmail.com>
  9. # CommitDate: Wed Aug 2 09:19:06 2017 +0300
  10.  
  11. # show commiter date and authot date of concrete commit
  12. git show 0b4cbb6028d413b582c8710166ff66a3fc56f80e --format=fuller
  13. # commit 0b4cbb6028d413b582c8710166ff66a3fc56f80e
  14. # Author: Dmytro Sokil <dmytro.sokil@gmail.com>
  15. # AuthorDate: Wed Aug 2 09:19:06 2017 +0300
  16. # Commit: Dmytro Sokil <dmytro.sokil@gmail.com>
  17. # CommitDate: Wed Aug 2 09:19:06 2017 +0300
  18.  
  19. # ignore timezone error
  20. # [fsck]
  21. # badTimezone = ignore
  22.  
  23. # Ignore specific errors:
  24. # [transfer]
  25. # fsckobjects = true
  26. # [fetch]
  27. # fsckobjects = true
  28. # fsck.badTimezone = ignore
  29. # [receive]
  30. # fsckObjects = true
  31.  
  32. # Ignore all errors:
  33. # [transfer]
  34. # fsckobjects = false
  35. # [fetch]
  36. # fsckobjects = false
  37. # [receive]
  38. # fsckObjects = false
  39.  
  40. # change broken commit
  41. git filter-branch --env-filter "if test \$GIT_COMMIT = '0b4cbb6028d413b582c8710166ff66a3fc56f80e'; then export GIT_AUTHOR_DATE; export GIT_COMMITTER_DATE; GIT_AUTHOR_DATE='Tue Jul 8 19:41:47 2014 +0300'; GIT_COMMITTER_DATE='$date'; fi";
  42. rm -fr "$(git rev-parse --git-dir)/refs/original/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement