Add git note
This commit is contained in:
parent
b3e99ec885
commit
2f9601ce08
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,12 @@ Rechercher dans toutes les branches :
|
||||||
git grep "the magic string" `git show-ref --heads`
|
git grep "the magic string" `git show-ref --heads`
|
||||||
git rev-list –all | xargs git grep -F "the magic string"
|
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 :
|
La plupart des commandes peuvent être restreintes à un chemin de fichier :
|
||||||
|
|
||||||
git stash push -- <filepath(s)>
|
git stash push -- <filepath(s)>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue