Skip to content

elledevelope/kit-demarrage-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Documentation git

Démarrage

Un dépôt git doit contenir 3 fichiers :

Créer un nouveau dépôt en ligne de commande

touch README.md LICENCE.md .gitignore
git init
git add *
git commit -m "Debut du prjet initialisation"
git branch -M main (renommer branche principale si besoin)
git remote add origin https://github.com/user/nom-depot.git
git push -u origin main

Envoyer(push) un dépôt existant en ligne de commande

git init
git remote add origin https://github.com/user/nom-depot.git
git branch -M main (renommer branche principale si besoin)
git push -u origin main

Travail avec git au quotidien

  • git pull Importer le travail du dépôt distant
  • git status Vérifier l'état de votre dépôt
  • git add fichier(s) ou git add * Ajouter les fichiers modifiés pour être prêt à être suivis
  • git commit ou git commit -m "Sujet du commit" Enregistrer vos modifications
  • git push Envoyer votre travail sur le dépôt distant

Méthode de travail avec git

Articles relatifs à git

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published