• Like
Gitkata refspec
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
123
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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. refspecgit pull [options] [<repository>[<refspec>...]]git push (...) [<repository>[<refspec>...]]
  • 3. refspecSchemat adresowania refsów branch tagref = note HEAD FETCH_HEAD ref = pointer = commit
  • 4. <source>:<destination>+<source>:<destination>
  • 5. git config -eorigin:+refs/heads/*:refs/remotes/origin/*
  • 6. refs/heads/qa*refs/heads/qa/*
  • 7. git ls-remote
  • 8. What else?● refs/heads ???● git push origin <src>:<dst>● git fetch <src>:<dst> ○ git fetch origin refs/heads/master: remotes/origin/master
  • 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. + == force
  • 11. What else ?● empty <src> == deletegit push :v1.0git push :topic/security
  • 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