Difference between revisions of "Ruby"

From Wiki2
Line 6: Line 6:
;git init: starts new repository
;git init: starts new repository
;git add .
;git add .
;git status
;git status; tells you what branch you are on and if you have stuff to commit
;git commit: commits change locally
;git commit: commits change locally
;git log: of commits
;git log: of commits
Line 16: Line 16:
;git remote add origin git@github.com:mckennatim/rubyapp2.git: this line is given in github
;git remote add origin git@github.com:mckennatim/rubyapp2.git: this line is given in github
;git push -u origin master:
;git push -u origin master:
;get checkout -b modify-README: creates a new branch
;mate README: now in new branch
;git mv README README.markdown
;mate README.markdown
;git commit -am "improve readme": commit locally all, message
;git checkout master: moves back to master branch
;git merge modify-README: bringes changes of the modify-README branch into the master branch
;

Revision as of 11:04, 2 November 2011

goto /users/tim/code/ruby

rails new appname
sets up directory system
bundle install
installs gems
.gitignore
installed with rails new
git init
starts new repository
git add .
git status; tells you what branch you are on and if you have stuff to commit
git commit
commits change locally
git log
of commits

on github

new repository

back on local machine

git remote add origin git@github.com
mckennatim/rubyapp2.git: this line is given in github
git push -u origin master
get checkout -b modify-README
creates a new branch
mate README
now in new branch
git mv README README.markdown
mate README.markdown
git commit -am "improve readme"
commit locally all, message
git checkout master
moves back to master branch
git merge modify-README
bringes changes of the modify-README branch into the master branch