spacepaste

  1.  
  2. maks@maksbotan-netbook ~/work $ mkdir git-1 git-2
  3. maks@maksbotan-netbook ~/work $ cd git-1/
  4. maks@maksbotan-netbook ~/work/git-1 $ echo "hey, it's repo one" > README.1
  5. maks@maksbotan-netbook ~/work/git-1 $ git init
  6. Initialized empty Git repository in /home/maks/work/git-1/.git/
  7. maks@maksbotan-netbook ~/work/git-1 $ git add .
  8. maks@maksbotan-netbook ~/work/git-1 $ git commit -m "Initial"
  9. [master (root-commit) 69c3d67] Initial
  10. 1 files changed, 1 insertions(+), 0 deletions(-)
  11. create mode 100644 README.1
  12. maks@maksbotan-netbook ~/work/git-1 $ cd ../git-2/
  13. maks@maksbotan-netbook ~/work/git-2 $ echo "hey, it's repo two" > README.2
  14. maks@maksbotan-netbook ~/work/git-2 $ git init
  15. Initialized empty Git repository in /home/maks/work/git-2/.git/
  16. maks@maksbotan-netbook ~/work/git-2 $ git add .
  17. maks@maksbotan-netbook ~/work/git-2 $ git commit -m "Initial"
  18. [master (root-commit) 46bb3b8] Initial
  19. 1 files changed, 1 insertions(+), 0 deletions(-)
  20. create mode 100644 README.2
  21. maks@maksbotan-netbook ~/work/git-2 $ git remote add repo-one ../git-1/.git/
  22. maks@maksbotan-netbook ~/work/git-2 $ git pull repo-one master
  23. warning: no common commits
  24. remote: Counting objects: 3, done.
  25. remote: Total 3 (delta 0), reused 0 (delta 0)
  26. Unpacking objects: 100% (3/3), done.
  27. From ../git-1/
  28. * branch master -> FETCH_HEAD
  29. Merge made by the 'recursive' strategy.
  30. README.1 | 1 +
  31. 1 files changed, 1 insertions(+), 0 deletions(-)
  32. create mode 100644 README.1
  33. maks@maksbotan-netbook ~/work/git-2 $ git remote rm repo-one
  34. Apparently nothing was received. Perhaps the connection failed. Enable --verbose or
  35. --debug to get the output from wget that can help diagnose it correctly
  36.