Difference between revisions of "GIT Cheat Sheet"
From Tmplab
(→Adding a file) |
|||
Line 1: | Line 1: | ||
− | |||
= Basic commands = | = Basic commands = | ||
== Creating == | == Creating == | ||
git init | git init | ||
− | == Adding | + | == Adding files == |
git add <filename> | git add <filename> | ||
+ | |||
+ | or to commit all files in current directory: | ||
+ | git add . | ||
== Committing changes == | == Committing changes == |
Revision as of 16:27, 1 October 2008
Contents
Basic commands
Creating
git init
Adding files
git add <filename>
or to commit all files in current directory:
git add .
Committing changes
git commit
Seeing changes
git log
References
- Good guide: http://www.sourcemage.org/Git_Guide
- Another good one: http://toolmantim.com/article/2007/12/5/setting_up_a_new_rails_app_with_git