Surviving with git
Basic commands |
|
| git clone [URL] | Clone locally the repository located at URL. |
| git status | Show the status of your files. |
| git add file | Add a file to your index. |
| git commit | Commit your changes locally. -a to automatically commit all the files of your index. -m "message" to give the commit message directly on the command line. |
| git push | push your local commits on the remote repository. |
| git pull | fetch and apply the remote commits on your local copy of the repository. |