Git tip
This commit is contained in:
parent
7143960732
commit
67f29ed2c4
1 changed files with 5 additions and 0 deletions
|
@ -55,9 +55,14 @@ La gestion des stash :
|
||||||
|
|
||||||
# voir le contenu d'un stash (0 est le plus récent)
|
# voir le contenu d'un stash (0 est le plus récent)
|
||||||
git stash show -p [stash@{<n>}]
|
git stash show -p [stash@{<n>}]
|
||||||
|
|
||||||
# appliquer un stash sans le supprimer
|
# appliquer un stash sans le supprimer
|
||||||
git stash apply [stash@{<n>}]
|
git stash apply [stash@{<n>}]
|
||||||
|
|
||||||
|
# mettre en stash les fichiers indexés en les conservant
|
||||||
|
git stash push --keep-index -m "message"
|
||||||
|
|
||||||
|
|
||||||
Récupérer un fichier d'une autre branche :
|
Récupérer un fichier d'une autre branche :
|
||||||
|
|
||||||
git checkout <branch> -- <path(s)>
|
git checkout <branch> -- <path(s)>
|
||||||
|
|
Loading…
Add table
Reference in a new issue