Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created September 9, 2011 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrycojones/1206381 to your computer and use it in GitHub Desktop.
Save terrycojones/1206381 to your computer and use it in GitHub Desktop.
t61p /tmp/git-test $ git init .
Initialized empty Git repository in /tmp/git-test/.git/
t61p /tmp/git-test (master) $ touch README
t61p /tmp/git-test (master) $ git add README
t61p /tmp/git-test (master) $ git commit -m "First commit"
[master (root-commit) eb68fa6] First commit
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README
t61p /tmp/git-test (master) $ touch README2
t61p /tmp/git-test (master) $ git checkout -b newbranch
Switched to a new branch 'newbranch'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment