Created
November 4, 2011 19:00
-
-
Save Atalanta/1340181 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
coromandel:tmp stephen$ mkdir example | |
coromandel:tmp stephen$ cd example/ | |
coromandel:example stephen$ git init | |
Initialized empty Git repository in /private/tmp/example/.git/ | |
coromandel:example stephen$ touch file1 | |
coromandel:example stephen$ git add . | |
coromandel:example stephen$ git commit -m 'init' | |
[master (root-commit) eba4ead] init | |
0 files changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 file1 | |
coromandel:example stephen$ git branch playpen | |
coromandel:example stephen$ git checkout playpen | |
Switched to branch 'playpen' | |
coromandel:example stephen$ touch file2 | |
coromandel:example stephen$ git add file2 | |
coromandel:example stephen$ git status | |
# On branch playpen | |
# Changes to be committed: | |
# (use "git reset HEAD <file>..." to unstage) | |
# | |
# new file: file2 | |
# | |
coromandel:example stephen$ git checkout master | |
A file2 | |
Switched to branch 'master' | |
coromandel:example stephen$ ls | |
file1 file2 | |
coromandel:example stephen$ git status | |
# On branch master | |
# Changes to be committed: | |
# (use "git reset HEAD <file>..." to unstage) | |
# | |
# new file: file2 | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment