|
19 | 19 | * [Delete local branch](https://github.com/git-tips/tips#delete-local-branch)
|
20 | 20 | * [Delete remote branch](https://github.com/git-tips/tips#delete-remote-branch)
|
21 | 21 | * [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head)
|
| 22 | +* [Reword the previous commit message](https://github.com/git-tips/tips#reword-the-previous-commit-message) |
22 | 23 | * [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url)
|
23 | 24 | * [Get list of all remote references](https://github.com/git-tips/tips#get-list-of-all-remote-references)
|
24 | 25 | * [Get list of all local and remote branches](https://github.com/git-tips/tips#get-list-of-all-local-and-remote-branches)
|
25 | 26 | * [Get only remote branches](https://github.com/git-tips/tips#get-only-remote-branches)
|
26 | 27 | * [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)
|
27 | 28 | * [Get git bash completion](https://github.com/git-tips/tips#get-git-bash-completion)
|
28 | 29 | * [What changed since two weeks?](https://github.com/git-tips/tips#what-changed-since-two-weeks)
|
| 30 | +* [See all commits made since forking from master](https://github.com/git-tips/tips#see-all-commits-made-since-forking-from-master) |
29 | 31 | * [Pick commits across branches using cherry-pick](https://github.com/git-tips/tips#pick-commits-across-branches-using-cherry-pick)
|
30 | 32 | * [Find out branches containing commit-hash](https://github.com/git-tips/tips#find-out-branches-containing-commit-hash)
|
31 | 33 | * [Git Aliases](https://github.com/git-tips/tips#git-aliases)
|
|
36 | 38 | * [Delete all stored stashes](https://github.com/git-tips/tips#delete-all-stored-stashes)
|
37 | 39 | * [Show all tracked files](https://github.com/git-tips/tips#show-all-tracked-files)
|
38 | 40 | * [Show all untracked files](https://github.com/git-tips/tips#show-all-untracked-files)
|
| 41 | +* [Show all ignored files](https://github.com/git-tips/tips#show-all-ignored-files) |
39 | 42 |
|
40 | 43 | <!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
41 | 44 | <!-- @doxie.inject end toc -->
|
@@ -129,6 +132,11 @@ git push origin :<remote_branchname>
|
129 | 132 | git checkout -- <file_name>
|
130 | 133 | ```
|
131 | 134 |
|
| 135 | +## Reword the previous commit message |
| 136 | +```sh |
| 137 | +git commit -v --amend |
| 138 | +``` |
| 139 | + |
132 | 140 | ## Changing a remote's URL
|
133 | 141 | ```sh
|
134 | 142 | git remote set-url origin <URL>
|
@@ -170,6 +178,11 @@ curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completio
|
170 | 178 | git whatchanged --since='2 weeks ago'
|
171 | 179 | ```
|
172 | 180 |
|
| 181 | +## See all commits made since forking from master |
| 182 | +```sh |
| 183 | +git log --no-merges --stat --reverse master.. |
| 184 | +``` |
| 185 | + |
173 | 186 | ## Pick commits across branches using cherry-pick
|
174 | 187 | ```sh
|
175 | 188 | git checkout <branch-name> && cherry-pick <commit-ish>
|
@@ -239,5 +252,10 @@ git ls-files -t
|
239 | 252 | git ls-files --others
|
240 | 253 | ```
|
241 | 254 |
|
| 255 | +## Show all ignored files |
| 256 | +```sh |
| 257 | +git ls-files --others -i --exclude-standard |
| 258 | +``` |
| 259 | + |
242 | 260 | <!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
243 | 261 | <!-- @doxie.inject end -->
|
0 commit comments