- maks@maksbotan-netbook ~/work $ mkdir git-1 git-2
- maks@maksbotan-netbook ~/work $ cd git-1/
- maks@maksbotan-netbook ~/work/git-1 $ echo "hey, it's repo one" > README.1
- maks@maksbotan-netbook ~/work/git-1 $ git init
- Initialized empty Git repository in /home/maks/work/git-1/.git/
- maks@maksbotan-netbook ~/work/git-1 $ git add .
- maks@maksbotan-netbook ~/work/git-1 $ git commit -m "Initial"
- [master (root-commit) 69c3d67] Initial
- 1 files changed, 1 insertions(+), 0 deletions(-)
- create mode 100644 README.1
- maks@maksbotan-netbook ~/work/git-1 $ cd ../git-2/
- maks@maksbotan-netbook ~/work/git-2 $ echo "hey, it's repo two" > README.2
- maks@maksbotan-netbook ~/work/git-2 $ git init
- Initialized empty Git repository in /home/maks/work/git-2/.git/
- maks@maksbotan-netbook ~/work/git-2 $ git add .
- maks@maksbotan-netbook ~/work/git-2 $ git commit -m "Initial"
- [master (root-commit) 46bb3b8] Initial
- 1 files changed, 1 insertions(+), 0 deletions(-)
- create mode 100644 README.2
- maks@maksbotan-netbook ~/work/git-2 $ git remote add repo-one ../git-1/.git/
- maks@maksbotan-netbook ~/work/git-2 $ git pull repo-one master
- warning: no common commits
- remote: Counting objects: 3, done.
- remote: Total 3 (delta 0), reused 0 (delta 0)
- Unpacking objects: 100% (3/3), done.
- From ../git-1/
- * branch master -> FETCH_HEAD
- Merge made by the 'recursive' strategy.
- README.1 | 1 +
- 1 files changed, 1 insertions(+), 0 deletions(-)
- create mode 100644 README.1
- maks@maksbotan-netbook ~/work/git-2 $ git remote rm repo-one
- Apparently nothing was received. Perhaps the connection failed. Enable --verbose or
- --debug to get the output from wget that can help diagnose it correctly