Skip to content

GitSyntax

Etienne DELAY edited this page Apr 20, 2018 · 1 revision

Basic notions for GIT

To clone a repository on my HD

On your Terminal, go on the folder where to download, then download the project

git clone monURL

Ex: git clone https://github.com/cormas/Booklet-CORMAS.git

To update your local folder with the distant folder

git pull

Save and push a file

After having modified a file, add and push it on GIT (first: 'add', then 'commit with comments', and 'push'):

git add monFichier
git commit -m "mon commentaire"
git push origin master