Created
April 29, 2012 21:25
-
-
Save matejuh/2553343 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matej@notebook:~/Downloaded/git_test_repo$ mkdir /home/matej/Images/test1 | |
matej@notebook:~/Downloaded/git_test_repo$ touch /home/matej/Images/test1/foo1 | |
matej@notebook:~/Downloaded/git_test_repo$ mkdir /home/matej/Documents/test2 | |
matej@notebook:~/Downloaded/git_test_repo$ touch /home/matej/Documents/test2/foo2 | |
matej@notebook:~/Downloaded/git_test_repo$ cd .. | |
matej@notebook:~/Downloaded$rm -rd git_test_repo | |
matej@notebook:~/Downloaded$ mkdir git_test_repo | |
matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ init | |
Initialized empty Git repository in /home/matej/Downloaded/git_test_repo/ | |
matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ --work-tree=/ add ../Documents/test2/matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ --work-tree=/ add ../Images/test1/ | |
matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ --work-tree=/ commit -m 'test commit' | |
[master (root-commit) 9072ed9] test commit | |
0 files changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 home/matej/Documents/test2/foo2 | |
create mode 100644 home/matej/Images/test1/foo1 | |
matej@notebook:~/Downloaded$ cd git_test_repo/ | |
matej@notebook:~/Downloaded/git_test_repo$ git remote add origin ssh://[email protected]/matejuh/test_distributed_repo.git | |
matej@notebook:~/Downloaded/git_test_repo$ git push origin master | |
Counting objects: 9, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (2/2), done. | |
Writing objects: 100% (9/9), 488 bytes, done. | |
Total 9 (delta 0), reused 0 (delta 0) | |
remote: bb/acl: matejuh is allowed. accepted payload. | |
To ssh://[email protected]/matejuh/test_distributed_repo.git | |
* [new branch] master -> master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matej@notebook:~/Downloaded$ mkdir test1 | |
matej@notebook:~/Downloaded$ mkdir test2 | |
matej@notebook:~/Downloaded$ touch test1/foo1 | |
matej@notebook:~/Downloaded$ touch test2/foo2 | |
matej@notebook:~/Downloaded$ mkdir git_test_repo | |
matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ init | |
Initialized empty Git repository in /home/matej/Downloaded/git_test_repo/ | |
matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ --work-tree=. add test1 | |
matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ --work-tree=. add test2 | |
matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ --work-tree=. status# On branch master | |
# | |
# Initial commit | |
# | |
# Changes to be committed: | |
# (use "git rm --cached <file>..." to unstage) | |
# | |
# new file: test1/foo1 | |
# new file: test2/foo2 | |
... | |
matej@notebook:~/Downloaded$ git --git-dir=./git_test_repo/ --work-tree=. commit -m 'test commit' | |
[master (root-commit) 333007a] test commit | |
0 files changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 test1/foo1 | |
create mode 100644 test2/foo2 | |
matej@notebook:~/Downloaded$ cd git_test_repo/ | |
matej@notebook:~/Downloaded/git_test_repo$ git remote add origin ssh://[email protected]/matejuh/test_distributed_repo.git | |
matej@notebook:~/Downloaded/git_test_repo$ git push origin master | |
Counting objects: 5, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (2/2), done. | |
Writing objects: 100% (5/5), 316 bytes, done. | |
Total 5 (delta 0), reused 0 (delta 0) | |
remote: bb/acl: matejuh is allowed. accepted payload. | |
To ssh://[email protected]/matejuh/test_distributed_repo.git | |
* [new branch] master -> master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment