Skip to content

Instantly share code, notes, and snippets.

@YamilG
Created April 5, 2011 19:08
Show Gist options
  • Save YamilG/904288 to your computer and use it in GitHub Desktop.
Save YamilG/904288 to your computer and use it in GitHub Desktop.
[rails_projects]$ mkdir demo2
[rails_projects]$ cd demo2
[demo2]$ git init
Initialized empty Git repository in /Users/yamilgonzales/Dropbox/rails_projects/demo2/.git/
[demo2]$ touch readme
[demo2]$ mate readme
[demo2]$ mv readme readme.txt
[demo2]$ git add .
[demo2]$ git commit -m "first commit"
[master (root-commit) ffb768a] first commit
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 readme.txt
[demo2]$ git remote add origin https://YamilG@github.com/YamilG/demo2.git
[demo2]$ git push origin master
Password:
Counting objects: 3, done.
Writing objects: 100% (3/3), 217 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://YamilG@github.com/YamilG/demo2.git
* [new branch] master -> master
[demo2]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment