User Tools

Site Tools


informatique:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
informatique:git [2023/06/09 10:13] yahikoinformatique:git [2024/04/09 09:06] (current) yahiko
Line 5: Line 5:
  
 ===== S'identifier ===== ===== S'identifier =====
-<codedoc>+<code shell>
 git config --global user.name "your_username" git config --global user.name "your_username"
 git config --global user.email "your_email_address@example.com" git config --global user.email "your_email_address@example.com"
 git config --global --list git config --global --list
  
-</codedoc>+</code>
  
-===== Initialiser et ajouter un dépot ===== +===== Initialiser et ajouter un dépôt ===== 
-<codedoc>+<code shell>
 cd dossier_repo cd dossier_repo
 git init git init
Line 20: Line 20:
 git branch -M main git branch -M main
 git push -uf origin main git push -uf origin main
-</codedoc>+</code>
  
 ===== Ajouter des trucs au dépot ===== ===== Ajouter des trucs au dépot =====
-<codedoc>+<code shell>
 cd dossier_repo cd dossier_repo
 git add [dossier ou fichier] git add [dossier ou fichier]
 git commit -m "Commentaire" git commit -m "Commentaire"
 git push git push
-</codedoc>+</code>
informatique/git.txt · Last modified: 2024/04/09 09:06 by yahiko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki