Skip to content
Snippets Groups Projects
Thomas's avatar
Achard Thomas authored
70e5b66b
History
Name Last commit Last update
README.md
test.cpp

Pour commencer à travailler :

1 - Cloner le répertoire chez vous (le <repository_url> vous le trouverez sous Code -> clone with HTTPS):

git clone <repository_url>

2 - Aller dans le répertoire :

cd <repository>

3 - Configurer git :

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

4 - Créer une nouvelle branche :

git checkout -b name-of-branch

5 - Vivre votre vie, faire vos modifications

6 - Mettre vos modifications en action

git add .
git commit -m "Your commit message"
git push origin name-of-branch

7 - Si vous êtes vraiment sûr de vous, merge vos modifications sur la main branch

git checkout main
git pull origin main
git merge name-of-branch
git add .
git merge --continue
git commit -m "Merge branch 'name-of-branch' into main"
git push origin main

8 - Pour supprimer votre branche que vous avez crée si elle n'est plus utile :

git branch -d your-feature-branch

Quoi après ?

1 - Pour retravailler sur le repo, il est très recommandé de pull toutes les nouvelles modifications

git pull origin main
ou
git pull <repository_url>

avec main étant le nom du main branch