Python framework for the web__3IA2
Guide détaillé pour Git et GitHub
1. Installer Git
Téléchargez et installez Git depuis git-scm.com (https://git-scm.com/). Suivez les instructions pour votre système
d'exploitation.
2. Configurer Git
Après l'installation, configurez votre nom et votre adresse e-mail :
git config --global user.name "Votre Nom"
3. Créer un nouveau dépôt Git
mkdir mon-projet
cd mon-projet
git init
Cela crée un nouveau dépôt Git vide dans le dossier mon-projet.
4. Ajouter des fichiers et les valider
1. Créez ou ajoutez des fichiers dans votre dossier de projet.
2. Ajoutez les fichiers à l'index :
git add .
4.Validez les modifications :
git commit -m "Message de commit"
6.Connecter votre dépôt local à un dépôt distant sur
GitHub
1. Créez un dépôt sur GitHub.
2. Connectez votre dépôt local au dépôt distant :
git remote add origin https://github.com/votre-utilisateur/mon-projet.git
3.Poussez les modifications initiales :
git push -u origin main
7. Travailler avec des branches
1.Créez une nouvelle branche :
git checkout -b nouvelle-fonctionnalité
2.Faites des modifications, ajoutez et validez les modifications.
3.Poussez la branche vers GitHub :
git push origin nouvelle-fonctionnalité