|
7 | 7 | }, { |
8 | 8 | "title": "Search change by content", |
9 | 9 | "tip": "git log -S'<a term in the source>'" |
| 10 | + }, { |
| 11 | + "title": "Show changes over time for specific file", |
| 12 | + "tip": "git log -p <file_name>" |
10 | 13 | }, { |
11 | 14 | "title": "Remove sensitive data from history, after a push", |
12 | 15 | "tip": "git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch <path-to-your-file>' --prune-empty --tag-name-filter cat -- --all && git push origin --force --all" |
|
19 | 22 | }, { |
20 | 23 | "title": "Git reset first commit", |
21 | 24 | "tip": "git update-ref -d HEAD" |
| 25 | + }, { |
| 26 | + "title": "Reset: preserve uncommitted local changes", |
| 27 | + "tip": "git reset --keep <commit>" |
22 | 28 | }, { |
23 | 29 | "title": "List all the conflicted files", |
24 | 30 | "tip": "git diff --name-only --diff-filter=U" |
|
58 | 64 | }, { |
59 | 65 | "title": "Delete remote branch", |
60 | 66 | "tip": "git push origin --delete <remote_branchname>", |
61 | | - "alternatives": ["git push origin :<remote_branchname>"] |
| 67 | + "alternatives": ["git push origin :<remote_branchname>", "git branch -dr <remote/branch>"] |
62 | 68 | }, { |
63 | 69 | "title": "Delete local tag", |
64 | 70 | "tip": "git tag -d <tag-name>" |
|
409 | 415 | }, { |
410 | 416 | "title": "Adding Remote name", |
411 | 417 | "tip": "git remote add <remote-nickname> <remote-url>" |
| 418 | + }, { |
| 419 | + "title": "List all currently configured remotes", |
| 420 | + "tip": "git remote -v" |
412 | 421 | }, { |
413 | 422 | "title": "Show the author, time and last revision made to each line of a given file", |
414 | 423 | "tip": "git blame <file-name>" |
|
0 commit comments