diff --git a/tips.json b/tips.json index 4ecadbe..8e7f434 100644 --- a/tips.json +++ b/tips.json @@ -7,6 +7,9 @@ }, { "title": "Search change by content", "tip": "git log -S''" + }, { + "title": "Show changes over time for specific file", + "tip": "git log -p " }, { "title": "Remove sensitive data from history, after a push", "tip": "git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ' --prune-empty --tag-name-filter cat -- --all && git push origin --force --all" @@ -19,6 +22,9 @@ }, { "title": "Git reset first commit", "tip": "git update-ref -d HEAD" + }, { + "title": "Reset: preserve uncommitted local changes", + "tip": "git reset --keep " }, { "title": "List all the conflicted files", "tip": "git diff --name-only --diff-filter=U" @@ -58,7 +64,7 @@ }, { "title": "Delete remote branch", "tip": "git push origin --delete ", - "alternatives": ["git push origin :"] + "alternatives": ["git push origin :", "git branch -dr "] }, { "title": "Delete local tag", "tip": "git tag -d " @@ -409,6 +415,9 @@ }, { "title": "Adding Remote name", "tip": "git remote add " + }, { + "title": "List all currently configured remotes", + "tip": "git remote -v" }, { "title": "Show the author, time and last revision made to each line of a given file", "tip": "git blame "