diff --git a/README.md b/README.md index 03fedce..edd9746 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ +* [Everyday Git in twenty commands or so](https://github.com/git-tips/tips#everyday-git-in-twenty-commands-or-so) * [Overwrite pull](https://github.com/git-tips/tips#overwrite-pull) * [List of all files till a commit](https://github.com/git-tips/tips#list-of-all-files-till-a-commit) * [Git reset first commit](https://github.com/git-tips/tips#git-reset-first-commit) @@ -63,6 +64,7 @@ * [Import from a bundle](https://github.com/git-tips/tips#import-from-a-bundle) * [Get the name of current branch.](https://github.com/git-tips/tips#get-the-name-of-current-branch) * [Ignore one file on commit (e.g. Changelog).](https://github.com/git-tips/tips#ignore-one-file-on-commit-eg-changelog) +* [Stash changes before rebasing](https://github.com/git-tips/tips#stash-changes-before-rebasing) @@ -70,6 +72,11 @@ +## Everyday Git in twenty commands or so +```sh +git help everyday +``` + ## Overwrite pull ```sh git fetch --all && git reset --hard origin/master @@ -443,5 +450,10 @@ git rev-parse --abbrev-ref HEAD git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog ``` +## Stash changes before rebasing +```sh +git rebase --autostash +``` + diff --git a/tips.json b/tips.json index d796ff4..e3abadc 100644 --- a/tips.json +++ b/tips.json @@ -1,4 +1,8 @@ [ + { + "title": "Everyday Git in twenty commands or so", + "tip": "git help everyday" + }, { "title": "Overwrite pull", "tip": "git fetch --all && git reset --hard origin/master" @@ -241,7 +245,7 @@ "tip": "git bundle create " }, { - "title": "Import form a bundle", + "title": "Import from a bundle", "tip": "git clone repo.bundle -b " }, { @@ -251,5 +255,9 @@ { "title": "Ignore one file on commit (e.g. Changelog).", "tip": "git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog" + }, + { + "title": "Stash changes before rebasing", + "tip": "git rebase --autostash" } ]