Guest User

Untitled

a guest
Feb 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Alice can peek at what Bob did without merging first, using the "fetch"
  2. command; this allows Alice to inspect what Bob did, using a special
  3. symbol "FETCH_HEAD", in order to determine if he has anything worth
  4. pulling, like this:
  5.  
  6. ------------------------------------------------
  7. alice$ git fetch /home/bob/myrepo master
  8. alice$ git log -p ..FETCH_HEAD
  9. ------------------------------------------------
  10.  
  11. This operation is safe even if Alice has uncommitted local changes.
  12.  
  13. Alice can also use gitk to browse that Bob did:
  14. ------------------------------------------------
  15. alice$ gitk master origin/master
  16. ------------------------------------------------
  17.  
  18. After inspecting what Bob did, if there is nothing urgent, Alice may
  19. decide to continue working without pulling from Bob. If Bob's history
  20. does have something Alice would immediately need, Alice may choose to
  21. stash her work-in-progress first, do a "pull", and then finally unstash
  22. her work-in-progress on top of the resulting history.
  23.  
  24. When you are working in a small closely knit group, it is not
  25. unusual to interact with the same repository over and over
  26. again.
Add Comment
Please, Sign In to add comment