Skip to content

Log de exemplo sincronizando forks

André Luiz edited this page Apr 30, 2014 · 1 revision
$ git clone [email protected]:dvl/pythonclub.github.io.git
Cloning into 'pythonclub.github.io'...
remote: Reusing existing pack: 256, done.
remote: Total 256 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (256/256), 58.65 KiB | 0 bytes/s, done.
Resolving deltas: 100% (116/116), done.
Checking connectivity... done.

$ cd pythonclub.github.io 

$ git remote add upstream [email protected]:pythonclub/pythonclub.github.io.git

$ git remote -v
origin  [email protected]:dvl/pythonclub.github.io.git (fetch)
origin  [email protected]:dvl/pythonclub.github.io.git (push)
upstream    [email protected]:pythonclub/pythonclub.github.io.git (fetch)
upstream    [email protected]:pythonclub/pythonclub.github.io.git (push)

$ git fetch upstream
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
From github.com:pythonclub/pythonclub.github.io
 * [new branch]      master     -> upstream/master
 * [new branch]      pelican    -> upstream/pelican

$ git branch -va
* pelican                  db80e60 Merge pull request #15 from luzfcb/pelican
  remotes/origin/HEAD      -> origin/pelican
  remotes/origin/master    835ee40 Travis build 20 pushed to Github Pages
  remotes/origin/pelican   db80e60 Merge pull request #15 from luzfcb/pelican
  remotes/upstream/master  835ee40 Travis build 20 pushed to Github Pages
  remotes/upstream/pelican 0466a32 Merge pull request #17 from erichideki/patch-1

$ git checkout pelican
Already on 'pelican'
Your branch is up-to-date with 'origin/pelican'.

$ git merge upstream/pelican
Updating db80e60..0466a32
Fast-forward
 README.md | 1 +
 1 file changed, 1 insertion(+)

$ git push 
Counting objects: 8, done.
Delta compression using up to 3 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 672 bytes | 0 bytes/s, done.
Total 4 (delta 2), reused 0 (delta 0)
To [email protected]:dvl/pythonclub.github.io.git
   db80e60..0466a32  pelican -> pelican
Clone this wiki locally