Created
August 15, 2014 22:47
-
-
Save ivangodfather/b1d08d223ab07a7976ee 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
| ~/desktop/test] git:master $ ls | |
| file | |
| [~/desktop/test] git:master $ git checkout newBranch | |
| M file | |
| Switched to branch 'newBranch' | |
| [~/desktop/test] git:newBranch $ ls | |
| file | |
| [~/desktop/test] git:newBranch $ echo "test" > anotherFile | |
| [~/desktop/test] git:newBranch $ git add anotherFile | |
| [~/desktop/test] git:newBranch $ git checkout master | |
| A anotherFile | |
| M file | |
| Switched to branch 'master' | |
| [~/desktop/test] git:master $ ls -la | |
| total 16 | |
| drwxr-xr-x 5 ivanruizmonjo staff 170 15 ago 17:45 . | |
| drwx------+ 7 ivanruizmonjo staff 238 15 ago 17:25 .. | |
| drwxr-xr-x 13 ivanruizmonjo staff 442 15 ago 17:46 .git | |
| -rw-r--r-- 1 ivanruizmonjo staff 5 15 ago 17:45 anotherFile | |
| -rw-r--r-- 1 ivanruizmonjo staff 22 15 ago 17:29 file | |
| [~/desktop/test] git:master $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment