Add git note

This commit is contained in:
Yax 2026-04-09 18:25:01 +02:00
parent b3e99ec885
commit 2f9601ce08

View file

@ -46,6 +46,12 @@ Rechercher dans toutes les branches :
git grep "the magic string" `git show-ref --heads`
git rev-list all | xargs git grep -F "the magic string"
Rechercher dans un fichier pour toutes ses révisions :
git rev-list --all | while read rev; do
git grep -n 'search_string' "$rev" -- myfile
done
La plupart des commandes peuvent être restreintes à un chemin de fichier :
git stash push -- <filepath(s)>