diff options
Diffstat (limited to 'git.md')
| -rw-r--r-- | git.md | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -15,7 +15,7 @@ git bisect new git checkout <some commit a while ago> git bisect old - git bisect run <command that returns 1 on old, 0 on new> + git bisect run <command that returns 0 on old, 1 on new> ## Patches @@ -30,3 +30,20 @@ Outputs to stdout a tar archive of the index at the given commit. Make a directory of just the code, not a repo: git archive <commit> | tar --extract --directory <output dir> + +## Remotes + +Change remote url: + + git remote set-url <remote> <new url> + +## git log + +Find commits that added or removed a particular string (specifically, where the +number of occurences changed): + + git log -S <pattern> + +Find commits that contain the given pattern in the diff: + + git log -G <pattern> |