tech:notes_git
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_git [2025/09/04 11:35] – Jean-Baptiste | tech:notes_git [2025/11/11 16:51] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 22: | Ligne 22: | ||
| Voir : | Voir : | ||
| + | * https:// | ||
| * [[https:// | * [[https:// | ||
| * https:// | * https:// | ||
| * Oh My Git! | * Oh My Git! | ||
| + | * http:// | ||
| Git | Git | ||
| Ligne 97: | Ligne 99: | ||
| git push -f | git push -f | ||
| </ | </ | ||
| + | |||
| === check before git push | === check before git push | ||
| Ligne 131: | Ligne 134: | ||
| == Configurer son environnement | == Configurer son environnement | ||
| - | <code bash ~/ | + | '' |
| + | <code bash> | ||
| export PS1=' | export PS1=' | ||
| export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 | export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 | ||
| Ligne 152: | Ligne 156: | ||
| git push -u origin master | git push -u origin master | ||
| </ | </ | ||
| + | |||
| == Push an existing repository from the command line | == Push an existing repository from the command line | ||
| Ligne 484: | Ligne 489: | ||
| git merge master | git merge master | ||
| </ | </ | ||
| + | |||
| === submodule | === submodule | ||
| Voir | Voir | ||
| - | https:// | + | * https:// |
| - | [[https:// | + | * https:// |
| + | * [[https:// | ||
| <code bash> | <code bash> | ||
| Ligne 524: | Ligne 531: | ||
| Avec Gitlab CI | Avec Gitlab CI | ||
| Voir : https:// | Voir : https:// | ||
| - | <code yaml .gitlab-ci.yml> | + | |
| + | '' | ||
| + | <code yaml> | ||
| variables: | variables: | ||
| GIT_SUBMODULE_STRATEGY: | GIT_SUBMODULE_STRATEGY: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | == Diagnostique | ||
| + | |||
| + | <code bash> | ||
| + | export GIT_TRACE=2 | ||
| + | export GIT_CURL_VERBOSE=2 | ||
| + | export GIT_TRACE_PERFORMANCE=2 | ||
| + | export GIT_TRACE_PACK_ACCESS=2 | ||
| + | export GIT_TRACE_PACKET=2 | ||
| + | export GIT_TRACE_PACKFILE=2 | ||
| + | export GIT_TRACE_SETUP=2 | ||
| + | export GIT_TRACE_SHALLOW=2 | ||
| + | </ | ||
| + | |||
| == Autres | == Autres | ||
| Ligne 541: | Ligne 565: | ||
| fetch --unshallow $URL | fetch --unshallow $URL | ||
| </ | </ | ||
| + | |||
| == Python | == Python | ||
| Ligne 547: | Ligne 572: | ||
| * pygit2 | * pygit2 | ||
| - | <code - reuirements.txt> | + | '' |
| + | <code -> | ||
| GitPython | GitPython | ||
| </ | </ | ||
| Ligne 602: | Ligne 628: | ||
| 'git < | 'git < | ||
| </ | </ | ||
| + | |||
| ==== Solution | ==== Solution | ||
| Ligne 608: | Ligne 635: | ||
| git checkout HEAD -- vars/ | git checkout HEAD -- vars/ | ||
| </ | </ | ||
| + | |||
| === Pb git diff et git difftool ne fonctionne pas | === Pb git diff et git difftool ne fonctionne pas | ||
tech/notes_git.1756978528.txt.gz · Dernière modification : de Jean-Baptiste
