Ceci est une ancienne révision du document !
Table des matières
Git
Marche à suivre pour création d'un projet en copiant le git en local
il faut créer un dossier vide et y aller
git init git pull https://romote.git
Aller dans le répertoire .ssh ouvrir un éditeur et copier le contenu. Copier dans https://gitlab.com/-/profile/keys
Marche à suivre pour création d'un projet
git config --global user.name "prénom nom" git config --global user.email "mettre ici email" cd existing_folder git init git remote add origin https://gitlab.com/chb2/appagaovh.git git add . git commit -m "Initial commit" git push -u origin master #mettre le nom d'utilisateur et le mot de passe
Forcer un git pull
Si des modifs on été faite mais qu'on ne veut pas les garder voici la marche à suivre
git reset --hard HEAD git pull
https://github.github.com/training-kit/downloads/fr/github-git-cheat-sheet.pdf
git push avec user / mot de passe
git push https://user:motdepasse@gitlab.com/user/projet –all