...
Most commands have built-in documentation you can access with the --help option:
Code Block |
---|
$ git init --help
|
You can generally access the same documentation as Unix man pages, e.g:
...
Use the git reset
command to "undo" an add operation:
Code Block |
---|
$ git reset HEAD
|
This resets the index but leaves your working directory untouched. You can also use git reset
to revert to a previous commit; read the documentation for more information.
...
Code Block |
---|
$ git checkout master
$ git merge seas-workshop-dev
Updating 1288ed3..33e4a4c
Fast-forward
version-control.rst | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
git: the index
|
The Git Index
Git is not really just like Subversion (or most other version control solutions). That's mainly because of the git "index".
...
This may take a while:
Code Block |
---|
$ export CVSHOME=:pserver:anonymous@example.com $ cvs login $ git cvsimport -o cvs_head -C my-project |
...