Notes | Git commands |
---|---|
Configure the author name and email address to be used with your commits.Note that Git strips some characters (for example trailing periods) from user.name. | git config --global user.name "Sam Smith" git config --global user.email [email protected] |
Create a new local repository | git init |
Create a working copy of a local repository: | git clone /path/to/repository |
For a remote server | git clone username@host:/path/to/repository |
Add one or more files to staging (index) | git add <filename> git add * |
| Description | Command |