Advertisement
Guest User

Untitled

a guest
Aug 13th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. git commit ... [--author=<author>]
  2.  
  3. $ git init
  4. Initialized empty Git repository in c:/projects/bb/.git/
  5.  
  6. $ touch a
  7. $ git add a
  8. $ git commit -m "new file" --author="Author Name <email@address.com>"
  9. [master (root-commit) cb6ca75] new file
  10. Author: Author Name <email@address.com>
  11. 1 file changed, 0 insertions(+), 0 deletions(-)
  12. create mode 100644 a
  13.  
  14. $ git log
  15. commit cb6ca75753e13de07202f131d730c68df1a96941
  16. Author: Author Name <email@address.com>
  17. Date: Thu Aug 13 12:24:21 2015 +0300
  18.  
  19. new file
  20.  
  21. git config --local alias.com 'commit --author="Author Name <email@address.com>"'
  22.  
  23. $ touch file2
  24. $ git add file2
  25. $ git com -m "File2"
  26. [master ed88a10] File2
  27. Author: Author Name <email@address.com>
  28. 1 file changed, 0 insertions(+), 0 deletions(-)
  29. create mode 100644 file2
  30.  
  31. $ git log
  32. commit ed88a10d1e1fef95cebd7d9cbc028314e6a3fa54
  33. Author: Author Name <email@address.com>
  34. Date: Thu Aug 13 12:46:48 2015 +0300
  35.  
  36. File2
  37. commit cb6ca75753e13de07202f131d730c68df1a96941
  38. Author: Author Name <email@address.com>
  39. Date: Thu Aug 13 12:24:21 2015 +0300
  40.  
  41. new file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement