Git: Difference between revisions
Jump to navigation
Jump to search
New page: == Useful Links == [http://smalltalk.gnu.org/blog/bonzinip/using-git-without-feeling-stupid-part-1 Using git without feeling stupid] |
No edit summary |
||
| Line 1: | Line 1: | ||
== Creating a new Project == | |||
$ tar xzf project.tar.gz | |||
$ cd project | |||
$ git init | |||
Git will reply | |||
Initialized empty Git repository in .git/ | |||
You've now initialized the working directory--you may notice a new directory created, named ".git". | |||
Next, tell git to take a snapshot of the contents of all files under the current directory (note the .), with git-add: | |||
$ git add . | |||
This snapshot is now stored in a temporary staging area which git calls the "index". You can permanently store the contents of the index in the repository with git-commit: | |||
$ git commit | |||
== Useful Links == | == Useful Links == | ||
[http://smalltalk.gnu.org/blog/bonzinip/using-git-without-feeling-stupid-part-1 Using git without feeling stupid] | [http://smalltalk.gnu.org/blog/bonzinip/using-git-without-feeling-stupid-part-1 Using git without feeling stupid] | ||
Revision as of 14:22, 5 January 2009
Creating a new Project
$ tar xzf project.tar.gz $ cd project $ git init
Git will reply
Initialized empty Git repository in .git/
You've now initialized the working directory--you may notice a new directory created, named ".git".
Next, tell git to take a snapshot of the contents of all files under the current directory (note the .), with git-add:
$ git add .
This snapshot is now stored in a temporary staging area which git calls the "index". You can permanently store the contents of the index in the repository with git-commit:
$ git commit