git clone <URL-dépot>Exemple :
git clone https://github.com/Matteo-K/PACT.gitgit checkout <nom-de-la-branche>git branchgit branch -rgit remote -vgit remote add <nom-du-remote> <URL-du-dépôt>Exemple :
git remote add PACT https://github.com/Matteo-K/PACT.gitgit remote remove <nom-du-remote>git pull <nom-du-remote> <nom-de-la-branche>git fetch <nom-du-remote>git add nomFichier.extensiongit add .git add -Agit commit -m "Message de commit décrivant les changements"Pour publier sur github, il faut push un commit soit mettre les fichiers dans le commit. Puis faire le commit. Et enfin faire le push pour qu'il soit accessible à tous.
git push <nom-du-remote> <nom-de-la-branche>Exemple :
git push PACT maingit push PACT mattéogit log