Skip to content

Commit df58137

Browse files
authored
Add aliases and commit message amends to Git tricks (#192)
* Updated my_favorite_neat_little_git_trick_demo.md with commit message rewrite trick * Updated my_favorite_neat_little_git_trick_demo.md with git aliases suggestion * Removed trailing space
1 parent 89486d0 commit df58137

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

01_version_control/my_favorite_neat_little_git_trick_demo.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
pretty = format:%C(auto,yellow)%h %C(auto,blue)%>(12,trunc)%ad %C(auto,green)%<(20,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D
1616
```
1717
18+
- Fix spelling mistakes in latest commit, which was not pushed to the remote yet
19+
- `git commit -m "Improved commit message" --amend`
20+
- Use with local changes only!
21+
22+
- Be faster with Git using aliases
23+
- For example with the `zsh` shell and the [OhMyZsh! git plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git)
24+
- `git commit -> gc`
25+
- `git log --graph -> glgg`
26+
1827
- To create a custom `.gitignore` file using *multiple* languages or IDEs, you can also use [gitignore.io](https://gitignore.io/).
1928
- *Toptal* also provides a [cli tool](https://docs.gitignore.io/install/command-line) which enables quick creation of a `.gitignore` file in the current repository.
2029
- You can also use `wget` or `curl` in combination with [https://www.toptal.com/developers/gitignore/api/](https://www.toptal.com/developers/gitignore/api/) followed by a comma (`,`) separated list to get the `.gitignore` file directly without the cli.

0 commit comments

Comments
 (0)