...
Adds content from all *.txt
files under Documentation
directory and its subdirectories.
$ git add Documentation/\*.txt |
commit
Consists of a snapshot of the directory structure and file contents for the entire project.Record changes to the repository.
Options:
- -a , --all : Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected.
- --p , --patch : Use the interactive patch selection interface to chose which changes to commit. See git-add[1] for details.
- -C <commit> , --reuse-message=<commit> : Take an existing commit object, and reuse the log message and the authorship information (including the timestamp) when creating the commit.
- -c <commit> , --reedit-message=<commit> : Like -C, but with
-c
the editor is invoked, so that the user can further edit the commit message. - --squash=<commit> : Construct a commit message for use with
rebase --autosquash
. - --branch : Show the branch and tracking info even in short-format.
- -F <file> , --file=<file> : Take the commit message from the given file. Use - to read the message from the standard input.
branch
To view a list of existing branches
...