class: main-title
Développement d'applications mobiles
Récapitulatif Git
--- class: section-title
Récapitulatif Git
---
---
Serveur
---
Commandes de base
git clone URL
git status
git add FICHIER FICHIER2 GLOB
git add -A
git commit -m 'MESSAGE'
git pull
Si conflit
, résoudre le conflit puis add et commit les fichiers
git push
Guide Git
---
Manipuler les branches
git branch --all
git checkout BRANCHE-LOCALE
git checkout -b NOUVELLE-BRANCHE-LOCALE
git push --set-upstream origin NOUVELLE-BRANCHE-LOCALE
git fetch && git checkout BRANCHE-REMOTE
git merge BRANCHE-LOCALE-A-MERGE
va inclure BRANCHE-A-MERGE dans la branche actuelle
git fetch REMOTE-A-MERGE && git merge REMOTE-A-MERGE
Tutoriel Learn Git Branching
Cheatsheet Git branches
---
Conseils
Commits fréquents, petite unité fonctionnelle
Ne
PAS
commit du code non-fonctionnel
Pull régulièrement
Push régulièrement
Gérer les conflits localement: Commit, Pull, Push
N'hésitez pas à utiliser les branches (surtout en travail collaboratif): feature-x, test-y
Exploitez le mécanisme de .gitignore
Git Tower - Best practices
---
Bitbucket
Créer un compte Bitbucket avec votre adresse
@cshawi.ca
https://bitbucket.org/account/signup/
Puis, faire la demande académique
www.atlassian.com/software/views/bitbucket-academic-license.jsp
Initialiser votre usager Git dans la VM
git config --global user.name "John Doe" git config --global user.email "1234567@cshawi.ca"
Configuration de l'
authentification SSH