Jump to content

GIT Cheat Sheet: Difference between revisions

From tmplab
Phil (talk | contribs)
No edit summary
Phil (talk | contribs)
Line 1: Line 1:
= Basic commands =
= Basic commands =
== Creating ==
== Creating ==
  git init
  git init


== Adding a file ==
== 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 15:27, 1 October 2008

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