Learning by doing: http://try.github.com/ (http://www.codeschool.com/courses/try-git)
Commands reference:
$ git init $ git status $ git add octocat.txt $ git status $ git commit -m "Add cute octocat story" $ git add '*.txt' $ git commit -m 'Add all the octocat txt files' $ git log $ git remote add origin git@github.com:rtomaszewski/try_git.git $ git push -u origin master $ git pull origin master $ git diff HEAD $ git add octofamily/octodog.txt $ git diff --staged $ git reset octofamily/octodog.txt $ git checkout -- octocat.txt $ git branch clean_up $ git checkout clean_up $ git rm '*.txt' $ git commit -m "Remove all the cats" $ git checkout master $ git merge clean_up $ git branch -d clean_up $ git push
No comments:
Post a Comment