SlideShare une entreprise Scribd logo
1  sur  12
Télécharger pour lire hors ligne
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
refspec
git pull [options] [<repository>
[<refspec>...]]

git push (...) [<repository>
[<refspec>...]]
refspec
Schemat adresowania refs'ów


           branch
           tag
ref =      note
           HEAD
           FETCH_HEAD

          ref = pointer = commit
<source>:<destination>


+<source>:<destination>
git config -e

origin:

+refs/heads/*:refs/remotes/origin/*
refs/heads/qa*
refs/heads/qa/*
git ls-remote
What else?
● refs/heads ???
● git push origin <src>:<dst>
● git fetch <src>:<dst>
  ○ git fetch origin refs/heads/master:
    remotes/origin/master
Tagi
$ git fetch --help

When <refspec> stores the fetched result in
remote-tracking branches, the tags that
point at these branches are automatically
followed (...) If the other end has tags
that point at branches you are not
interested in, you will not get them.


$ git fetch --tags
$ git push --tags
+ == force
What else ?
● empty <src> == delete




git push :v1.0
git push :topic/security
Next katas

Submodules (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

Contenu connexe

Tendances

Zsh & fish: better *bash* for hackers
Zsh & fish: better *bash* for hackersZsh & fish: better *bash* for hackers
Zsh & fish: better *bash* for hackersRuslan Sharipov
 
Basic command for linux
Basic command for linuxBasic command for linux
Basic command for linuxgt0ne
 
Как показать 90 млн картинок и сохранить жизнь диску
Как показать 90 млн картинок и сохранить жизнь дискуКак показать 90 млн картинок и сохранить жизнь диску
Как показать 90 млн картинок и сохранить жизнь дискуАндрей Шорин
 
Как показать 90 млн картинок и сохранить жизнь диску
Как показать 90 млн картинок и сохранить жизнь дискуКак показать 90 млн картинок и сохранить жизнь диску
Как показать 90 млн картинок и сохранить жизнь дискуCEE-SEC(R)
 
Zsh shell-for-humans
Zsh shell-for-humansZsh shell-for-humans
Zsh shell-for-humansJuan De Bravo
 
How to send files to remote server via ssh in php
How to send files to remote server via ssh in phpHow to send files to remote server via ssh in php
How to send files to remote server via ssh in phpAndolasoft Inc
 
Clojure + MongoDB on Heroku
Clojure + MongoDB on HerokuClojure + MongoDB on Heroku
Clojure + MongoDB on HerokuNaoyuki Kakuda
 
Make the prompt great again
Make the prompt great againMake the prompt great again
Make the prompt great againjtyr
 
Why Zsh is Cooler than Your Shell
Why Zsh is Cooler than Your ShellWhy Zsh is Cooler than Your Shell
Why Zsh is Cooler than Your Shelljaguardesignstudio
 
Rc - The Plan 9 Shell
Rc - The Plan 9 ShellRc - The Plan 9 Shell
Rc - The Plan 9 Shelltwopoint718
 
Neoito — *NIX kungfu for web devs
Neoito — *NIX kungfu for web devsNeoito — *NIX kungfu for web devs
Neoito — *NIX kungfu for web devsNeoito
 
Spatial script for my JS.Everywhere 2012
Spatial script for my JS.Everywhere 2012Spatial script for my JS.Everywhere 2012
Spatial script for my JS.Everywhere 2012Steven Pousty
 
Pop3stat sh
Pop3stat shPop3stat sh
Pop3stat shBen Pope
 
Spatial script for MongoBoulder
Spatial script for MongoBoulderSpatial script for MongoBoulder
Spatial script for MongoBoulderSteven Pousty
 
Shell Scripting
Shell ScriptingShell Scripting
Shell Scriptingdcarneir
 
Why zsh is Cooler than Your Shell
Why zsh is Cooler than Your ShellWhy zsh is Cooler than Your Shell
Why zsh is Cooler than Your Shellbrendon_jag
 

Tendances (20)

Zsh & fish: better *bash* for hackers
Zsh & fish: better *bash* for hackersZsh & fish: better *bash* for hackers
Zsh & fish: better *bash* for hackers
 
Kubernetes - Parte I
Kubernetes - Parte IKubernetes - Parte I
Kubernetes - Parte I
 
Basic command for linux
Basic command for linuxBasic command for linux
Basic command for linux
 
Как показать 90 млн картинок и сохранить жизнь диску
Как показать 90 млн картинок и сохранить жизнь дискуКак показать 90 млн картинок и сохранить жизнь диску
Как показать 90 млн картинок и сохранить жизнь диску
 
Как показать 90 млн картинок и сохранить жизнь диску
Как показать 90 млн картинок и сохранить жизнь дискуКак показать 90 млн картинок и сохранить жизнь диску
Как показать 90 млн картинок и сохранить жизнь диску
 
Zsh shell-for-humans
Zsh shell-for-humansZsh shell-for-humans
Zsh shell-for-humans
 
How to send files to remote server via ssh in php
How to send files to remote server via ssh in phpHow to send files to remote server via ssh in php
How to send files to remote server via ssh in php
 
Clojure + MongoDB on Heroku
Clojure + MongoDB on HerokuClojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
 
Make the prompt great again
Make the prompt great againMake the prompt great again
Make the prompt great again
 
Why Zsh is Cooler than Your Shell
Why Zsh is Cooler than Your ShellWhy Zsh is Cooler than Your Shell
Why Zsh is Cooler than Your Shell
 
Rc - The Plan 9 Shell
Rc - The Plan 9 ShellRc - The Plan 9 Shell
Rc - The Plan 9 Shell
 
Linux Basics
Linux BasicsLinux Basics
Linux Basics
 
Neoito — *NIX kungfu for web devs
Neoito — *NIX kungfu for web devsNeoito — *NIX kungfu for web devs
Neoito — *NIX kungfu for web devs
 
Spatial script for my JS.Everywhere 2012
Spatial script for my JS.Everywhere 2012Spatial script for my JS.Everywhere 2012
Spatial script for my JS.Everywhere 2012
 
Pop3stat sh
Pop3stat shPop3stat sh
Pop3stat sh
 
Spatial script for MongoBoulder
Spatial script for MongoBoulderSpatial script for MongoBoulder
Spatial script for MongoBoulder
 
Php&redis presentation
Php&redis presentationPhp&redis presentation
Php&redis presentation
 
Shell Scripting
Shell ScriptingShell Scripting
Shell Scripting
 
Vim Notes
Vim NotesVim Notes
Vim Notes
 
Why zsh is Cooler than Your Shell
Why zsh is Cooler than Your ShellWhy zsh is Cooler than Your Shell
Why zsh is Cooler than Your Shell
 

Similaire à Gitkata refspec

Learning Git with Workflows
Learning Git with WorkflowsLearning Git with Workflows
Learning Git with WorkflowsMosky Liu
 
GIT: Content-addressable filesystem and Version Control System
GIT: Content-addressable filesystem and Version Control SystemGIT: Content-addressable filesystem and Version Control System
GIT: Content-addressable filesystem and Version Control SystemTommaso Visconti
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Brian K. Vagnini
 
git. WTF is it doing anyway?
git. WTF is it doing anyway?git. WTF is it doing anyway?
git. WTF is it doing anyway?Erin Zimmer
 
Rapid and Scalable Development with MongoDB, PyMongo, and Ming
Rapid and Scalable Development with MongoDB, PyMongo, and MingRapid and Scalable Development with MongoDB, PyMongo, and Ming
Rapid and Scalable Development with MongoDB, PyMongo, and MingRick Copeland
 
GTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSourceGTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSourceForest Mars
 

Similaire à Gitkata refspec (7)

Learning Git with Workflows
Learning Git with WorkflowsLearning Git with Workflows
Learning Git with Workflows
 
GIT: Content-addressable filesystem and Version Control System
GIT: Content-addressable filesystem and Version Control SystemGIT: Content-addressable filesystem and Version Control System
GIT: Content-addressable filesystem and Version Control System
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
 
git. WTF is it doing anyway?
git. WTF is it doing anyway?git. WTF is it doing anyway?
git. WTF is it doing anyway?
 
Rapid and Scalable Development with MongoDB, PyMongo, and Ming
Rapid and Scalable Development with MongoDB, PyMongo, and MingRapid and Scalable Development with MongoDB, PyMongo, and Ming
Rapid and Scalable Development with MongoDB, PyMongo, and Ming
 
GTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSourceGTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSource
 
Thinking in Git
Thinking in GitThinking in Git
Thinking in Git
 

Gitkata refspec

  • 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. refspec git pull [options] [<repository> [<refspec>...]] git push (...) [<repository> [<refspec>...]]
  • 3. refspec Schemat adresowania refs'ów branch tag ref = note HEAD FETCH_HEAD ref = pointer = commit
  • 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 --help When <refspec> stores the fetched result in remote-tracking branches, the tags that point at these branches are automatically followed (...) If the other end has tags that point at branches you are not interested in, you will not get them. $ git fetch --tags $ git push --tags
  • 11. What else ? ● empty <src> == delete git push :v1.0 git push :topic/security
  • 12. Next katas Submodules (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