git

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
git [2018/05/16 17:08] – modification externe 127.0.0.1git [2023/05/08 01:41] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 ===forcer l'ajout d'un répertoire vide=== ===forcer l'ajout d'un répertoire vide===
 -> http://stackoverflow.com/questions/115983/add-empty-directory-to-git-repository -> http://stackoverflow.com/questions/115983/add-empty-directory-to-git-repository
-créer un ''.gitignore'' dans ce répertoire avec le contenu suivant :+créer un ''.gitignore'' dans ce répertoire avec le contenu suivant :  
 ### Ignore everything in this directory ### Ignore everything in this directory
 * *
Ligne 7: Ligne 7:
 !.gitignore'' !.gitignore''
 \\  \\ 
 +
 ===annuler un commit=== ===annuler un commit===
-tant qu'il n'a pas été pousséun commit peut etre modifié en local (amend).+====tant qu'il n'a pas été poussé==== un commit peut etre modifié en local (amend).
 une fois poussé sur le dépôt, ce n'est plus possible. une fois poussé sur le dépôt, ce n'est plus possible.
 -> https://github.com/blog/2019-how-to-undo-almost-anything-with-git -> https://github.com/blog/2019-how-to-undo-almost-anything-with-git
 -> http://stackoverflow.com/questions/448919/how-can-i-remove-a-commit-on-github -> http://stackoverflow.com/questions/448919/how-can-i-remove-a-commit-on-github
 +====déjà poussé ===
 +-> https://stackoverflow.com/a/8225166  
 +git reset HEAD^ # remove commit locally  
 +git push origin +HEAD # force-push the new HEAD commit  
 \\  \\ 
 +
 ===config globale=== ===config globale===
 ''git config --global user.email "olaulau@gmail.com" ''git config --global user.email "olaulau@gmail.com"
Ligne 19: Ligne 25:
 git config --global push.default simple## git config --global push.default simple##
 \\  \\ 
 +
 ===migrer un dépot SVN sur git=== ===migrer un dépot SVN sur git===
 http://www.yterium.net/Migrer-un-projet-SVN-vers-GIT http://www.yterium.net/Migrer-un-projet-SVN-vers-GIT
  • git.1526483302.txt.gz
  • Dernière modification: 2023/05/08 01:41
  • (modification externe)