diff --git a/README.md b/README.md index a4fc9ad..a4f0987 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ * [Delete local branch](https://github.com/git-tips/tips#delete-local-branch) * [Delete remote branch](https://github.com/git-tips/tips#delete-remote-branch) * [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head) +* [Reword the previous commit message](https://github.com/git-tips/tips#reword-the-previous-commit-message) * [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url) * [Get list of all remote references](https://github.com/git-tips/tips#get-list-of-all-remote-references) * [Get list of all local and remote branches](https://github.com/git-tips/tips#get-list-of-all-local-and-remote-branches) @@ -26,6 +27,7 @@ * [Stage parts of a changed file, instead of the entire file](https://github.com/git-tips/tips#stage-parts-of-a-changed-file-instead-of-the-entire-file) * [Get git bash completion](https://github.com/git-tips/tips#get-git-bash-completion) * [What changed since two weeks?](https://github.com/git-tips/tips#what-changed-since-two-weeks) +* [See all commits made since forking from master](https://github.com/git-tips/tips#see-all-commits-made-since-forking-from-master) * [Pick commits across branches using cherry-pick](https://github.com/git-tips/tips#pick-commits-across-branches-using-cherry-pick) * [Find out branches containing commit-hash](https://github.com/git-tips/tips#find-out-branches-containing-commit-hash) * [Git Aliases](https://github.com/git-tips/tips#git-aliases) @@ -36,6 +38,7 @@ * [Delete all stored stashes](https://github.com/git-tips/tips#delete-all-stored-stashes) * [Show all tracked files](https://github.com/git-tips/tips#show-all-tracked-files) * [Show all untracked files](https://github.com/git-tips/tips#show-all-untracked-files) +* [Show all ignored files](https://github.com/git-tips/tips#show-all-ignored-files) @@ -129,6 +132,11 @@ git push origin : git checkout -- ``` +## Reword the previous commit message +```sh +git commit -v --amend +``` + ## Changing a remote's URL ```sh git remote set-url origin @@ -170,6 +178,11 @@ curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completio git whatchanged --since='2 weeks ago' ``` +## See all commits made since forking from master +```sh +git log --no-merges --stat --reverse master.. +``` + ## Pick commits across branches using cherry-pick ```sh git checkout && cherry-pick @@ -239,5 +252,10 @@ git ls-files -t git ls-files --others ``` +## Show all ignored files +```sh +git ls-files --others -i --exclude-standard +``` + diff --git a/tips.json b/tips.json index 72b80b2..915520f 100644 --- a/tips.json +++ b/tips.json @@ -64,6 +64,10 @@ "title": "Undo local changes with the last content in head", "tip": "git checkout -- " }, + { + "title": "Reword the previous commit message", + "tip": "git commit -v --amend" + }, { "title": "Changing a remote's URL", "tip": "git remote set-url origin " @@ -93,6 +97,10 @@ "title": "What changed since two weeks?", "tip": "git whatchanged --since='2 weeks ago'" }, + { + "title": "See all commits made since forking from master", + "tip": "git log --no-merges --stat --reverse master.." + }, { "title": "Pick commits across branches using cherry-pick", "tip": "git checkout && cherry-pick " @@ -135,5 +143,9 @@ { "title":"Show all untracked files", "tip":"git ls-files --others" + }, + { + "title": "Show all ignored files", + "tip": "git ls-files --others -i --exclude-standard" } ]