Created
March 3, 2009 08:19
-
-
Save grum/73228 to your computer and use it in GitHub Desktop.
This file contains 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
erikbroes@db-int:~$ mkdir master; cd master; git init; echo hello > README; git add .; git commit -m "first commit"; cd .. | |
Initialized empty Git repository in /home/erikbroes/master/.git/ | |
[master (root-commit)]: created 71ca0f6: "first commit" | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
create mode 100644 README | |
erikbroes@db-int:~$ git clone master clone; cd clone; echo world >> README; git commit -a -m"second commit"; git push; cd .. | |
Initialized empty Git repository in /home/erikbroes/clone/.git/ | |
[master]: created 9ccb052: "second commit" | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
Counting objects: 5, done. | |
Writing objects: 100% (3/3), 254 bytes, done. | |
Total 3 (delta 0), reused 0 (delta 0) | |
Unpacking objects: 100% (3/3), done. | |
warning: updating the currently checked out branch; this may cause confusion, | |
as the index and working tree do not reflect changes that are now in HEAD. | |
To /home/erikbroes/master | |
71ca0f6..9ccb052 master -> master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment