Gitkata refspec

384 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
384
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Gitkata refspec

  1. 1. refspec Other katas NOW (12:20) Katas NEXT (13:10) Manipulating commits (Jakub Nabrdalik) Submodules (Paweł Cesar Sanjuan Szklarz) Git flow (Michał Bareja) Pull & push options (Michał Bareja) Merging and rebasing (Mateusz Harasymczuk) Git rerere (Mateusz Grzechociński) USB workflow (Łukasz Siwiński) Git internals (Mateusz Harasymczuk) Rescue stash (Kamil Trzciński) Git bisect (Grzegorz Kubiak) Undoing changes (Marcin Zajączkowski) Git-svn (Kamil Trzciński) Rescue stash (Marcin Zajączkowski) Mateusz Grzechociński$ git kata http://grzechocinski.net
  2. 2. refspecgit pull [options] [<repository>[<refspec>...]]git push (...) [<repository>[<refspec>...]]
  3. 3. refspecSchemat adresowania refsów branch tagref = note HEAD FETCH_HEAD ref = pointer = commit
  4. 4. <source>:<destination>+<source>:<destination>
  5. 5. git config -eorigin:+refs/heads/*:refs/remotes/origin/*
  6. 6. refs/heads/qa*refs/heads/qa/*
  7. 7. git ls-remote
  8. 8. What else?● refs/heads ???● git push origin <src>:<dst>● git fetch <src>:<dst> ○ git fetch origin refs/heads/master: remotes/origin/master
  9. 9. Tagi$ git fetch --helpWhen <refspec> stores the fetched result inremote-tracking branches, the tags thatpoint at these branches are automaticallyfollowed (...) If the other end has tagsthat point at branches you are notinterested in, you will not get them.$ git fetch --tags$ git push --tags
  10. 10. + == force
  11. 11. What else ?● empty <src> == deletegit push :v1.0git push :topic/security
  12. 12. Next katasSubmodules (Paweł Cesar Sanjuan Szklarz)Pull & push options (Michał Bareja)Git rerere (Mateusz Grzechociński)Git internals (Mateusz Harasymczuk)Git bisect (Grzegorz Kubiak)Git-svn (Kamil Trzciński)Rescue stash (Marcin Zajączkowski) Mateusz Grzechociński http://grzechocinski.net

×