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
Next revision
Previous revision
informatique:git [2024/11/22 15:06] yahikoinformatique:git [2024/12/08 16:04] (current) yahiko
Line 81: Line 81:
 cd dossier_du_projet cd dossier_du_projet
 git init git init
-git remote add origine git@forge.tedomum.net:utilisateur/projet.git+git remote add origin git@forge.tedomum.net:utilisateur/projet.git
 </code> </code>
  
Line 106: Line 106:
 git add . git add .
 git commit -m "Version initiale" git commit -m "Version initiale"
 +git push --set-upstream origin main
 +</code>
 +
 +Lors du premier envoi : 
 +<code bash>
 +git push --set-upstream git@forge.tedomum.net:utilisateur/projet.git main
 +</code>
 +
 +Si problème lors du push : 
 +<code bash>
 +git pull --rebase origin main
 git push --set-upstream origin main git push --set-upstream origin main
 </code> </code>
informatique/git.1732287966.txt.gz · Last modified: 2024/11/22 15:06 by yahiko