Skip to content

Instantly share code, notes, and snippets.

@stephentu
Created December 21, 2013 20:11
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 stephentu/8074313 to your computer and use it in GitHub Desktop.
Save stephentu/8074313 to your computer and use it in GitHub Desktop.
stephentu@peavey:~$ mkdir tester
stephentu@peavey:~$ cd tester
stephentu@peavey:~/tester$ git init
Initialized empty Git repository in /Users/stephentu/tester/.git/
stephentu@peavey:~/tester(master)$ touch foo.c
stephentu@peavey:~/tester(master)$ git add foo.c
stephentu@peavey:~/tester(master)$ git commit -m 'first commit'
[master (root-commit) 3e51a35] first commit
0 files changed
create mode 100644 foo.c
stephentu@peavey:~/tester(master)$ git remote add origin git@github.com:stephentu/tester.git
stephentu@peavey:~/tester(master)$ git push -u origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 209 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:stephentu/tester.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment