Outils pour utilisateurs

Outils du site


tech:notes_git

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_git [2025/11/03 10:26] Jean-Baptistetech:notes_git [2025/11/11 16:51] (Version actuelle) Jean-Baptiste
Ligne 99: Ligne 99:
 git push -f git push -f
 </code> </code>
 +
  
 === check before git push === check before git push
Ligne 133: Ligne 134:
 == Configurer son environnement == Configurer son environnement
  
-<code bash ~/.bashrc>+''~/.bashrc'' 
 +<code bash>
 export PS1='\u@\h:\w$(__git_ps1) \$ ' export PS1='\u@\h:\w$(__git_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 154: Ligne 156:
 git push -u origin master git push -u origin master
 </code> </code>
 +
  
 == Push an existing repository from the command line == Push an existing repository from the command line
Ligne 486: Ligne 489:
 git merge master git merge master
 </code> </code>
 +
  
 === submodule === submodule
Ligne 527: Ligne 531:
 Avec Gitlab CI Avec Gitlab CI
 Voir : https://docs.gitlab.com/ee/ci/git_submodules.html Voir : https://docs.gitlab.com/ee/ci/git_submodules.html
-<code yaml .gitlab-ci.yml>+ 
 +''.gitlab-ci.yml'' 
 +<code yaml>
 variables: variables:
   GIT_SUBMODULE_STRATEGY: recursive   GIT_SUBMODULE_STRATEGY: recursive
 </code> </code>
 +
 +
 +== 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
 +</code>
 +
  
 == Autres == Autres
Ligne 544: Ligne 565:
 fetch --unshallow $URL fetch --unshallow $URL
 </code> </code>
 +
  
 == Python == Python
Ligne 550: Ligne 572:
 * pygit2 * pygit2
  
-<code - reuirements.txt>+''reuirements.txt'' 
 +<code ->
 GitPython GitPython
 </code> </code>
Ligne 605: Ligne 628:
 'git <command> [<revision>...] -- [<yourcode>...]' 'git <command> [<revision>...] -- [<yourcode>...]'
 </code> </code>
 +
  
 ==== Solution ==== Solution
Ligne 611: Ligne 635:
 git checkout HEAD -- vars/kvm-deb10.var preseed/kvm-deb10.cfg git checkout HEAD -- vars/kvm-deb10.var preseed/kvm-deb10.cfg
 </code> </code>
 +
  
 === Pb git diff et git difftool ne fonctionne pas === Pb git diff et git difftool ne fonctionne pas
tech/notes_git.1762161971.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki