Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. $ git init foo
  2. Initialized empty Git repository in /home/dborowitz/foo/.git/
  3. $ cd foo
  4. $ curl -sLo `git rev-parse --git-dir`/hooks/commit-msg https://gerrit-review.googlesource.com/tools/hooks/commit-msg ; chmod +x `git rev-parse --git-dir`/hooks/commit-msg
  5. $ touch foo
  6. $ git add foo
  7. $ git commit -m "Add foo"
  8. [master (root-commit) 950ab62] Add foo
  9. 1 file changed, 0 insertions(+), 0 deletions(-)
  10. create mode 100644 foo
  11. $ git log -1
  12. commit 950ab62be9453d43b7ac8691a5e9f40cedec2ba8 (HEAD -> master)
  13. Author: Dave Borowitz <dborowitz@google.com>
  14. Date: Thu Jul 20 08:39:12 2017 -0400
  15.  
  16. Add foo
  17.  
  18. Change-Id: Id4bcdd92bd933a279ee14fbae2dd487d4c5cc823
  19. $ git commit --amend -m "Add foo with a slightly different message"
  20. [master 0484046] Add foo with a slightly different message
  21. Date: Thu Jul 20 08:39:12 2017 -0400
  22. 1 file changed, 0 insertions(+), 0 deletions(-)
  23. create mode 100644 foo
  24. $ git log -1
  25. commit 04840460c8b8bf1864daadb11498d9c5314caf9a (HEAD -> master)
  26. Author: Dave Borowitz <dborowitz@google.com>
  27. Date: Thu Jul 20 08:39:12 2017 -0400
  28.  
  29. Add foo with a slightly different message
  30.  
  31. Change-Id: I314cfc4669202b82050358a45be00793247f2b7f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement