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/11 16:33] Jean-Baptistetech:notes_git [2026/03/11 18:30] (Version actuelle) Jean-Baptiste
Ligne 22: Ligne 22:
  
 Voir : Voir :
 +* https://www.youtube.com/playlist?list=PLPoAfTkDs_JbMPY-BXzud0aMhKKhcstRc
 +* https://ndpsoftware.com/git-cheatsheet.html
 * https://confluence.atlassian.com/bitbucketserver094/basic-git-commands-1489801692.html?utm_campaign=in-app-help&utm_medium=in-app-help * https://confluence.atlassian.com/bitbucketserver094/basic-git-commands-1489801692.html?utm_campaign=in-app-help&utm_medium=in-app-help
 * [[https://opensource.com/article/23/1/git-articles|7 Git articles every open source practitioner should read]] * [[https://opensource.com/article/23/1/git-articles|7 Git articles every open source practitioner should read]]
Ligne 120: Ligne 122:
 To see full file paths of the files that will change, run: To see full file paths of the files that will change, run:
 <code bash> <code bash>
 +git diff --name-only [remote repo/branch]
 +
 +# Ou encore 
 +git diff --name-status [remote repo/branch]
 git diff --numstat [remote repo/branch] git diff --numstat [remote repo/branch]
 </code> </code>
Ligne 408: Ligne 414:
 </code> </code>
  
 +
 +# # Checkout the stable branch and find just the latest tag
 +# git checkout master
 +# git describe --abbrev=0 --tags
 +# git tag --sort
  
  
Ligne 452: Ligne 463:
 <code bash> <code bash>
 git diff origin/master git diff origin/master
 +</code>
 +
 +Diff entre branches
 +<code bash>
 +git diff --name-only dev1..dev2
 +git difftool -y -t vimdiff dev1 dev2 .gitlab-ci.yml
 </code> </code>
  
Ligne 531: Ligne 548:
 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
Ligne 563: Ligne 582:
 fetch --unshallow $URL fetch --unshallow $URL
 </code> </code>
 +
  
 == Python == Python
Ligne 625: Ligne 645:
 'git <command> [<revision>...] -- [<yourcode>...]' 'git <command> [<revision>...] -- [<yourcode>...]'
 </code> </code>
 +
  
 ==== Solution ==== Solution
tech/notes_git.1762875222.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki