Advertisement
Guest User

Untitled

a guest
Apr 29th, 2015
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. $ git init
  2.  
  3. $ dd if=/dev/urandom of=big-file-a bs=1M count=1
  4.  
  5. $ cp big-file-a big-file-b
  6.  
  7. $ ls -l
  8. -rw-r--r-- 1 user group 1.0M 29. Apr 19:07 big-file-a
  9. -rw-r--r-- 1 user group 1.0M 29. Apr 19:07 big-file-b
  10.  
  11. $ git add big-file-*
  12.  
  13. $ git commit -m test-commit
  14.  
  15. $ git log
  16. commit 757dd408ab445b18be87f388180175f39a56cb1e
  17. ...
  18.  
  19. $ git cat-file -p 757dd
  20. tree fa9bd01b5a3221f2ea972ce97ad82473868d6d86
  21. ...
  22.  
  23. $ git cat-file -p fa9bd
  24. 100644 blob ce178896ee0b8608c463beb41ca1110bc9545865    big-file-a
  25. 100644 blob ce178896ee0b8608c463beb41ca1110bc9545865    big-file-b
  26.  
  27. $ du -hs .git/objects/
  28. 1.1M    .git/objects/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement