Skip to content

Commit 6e92449

Browse files
authored
feat(gitTrick): Add another nice git trick I learned recently (#163)
1 parent f7a180e commit 6e92449

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

01_version_control/my_favorite_neat_little_git_trick_demo.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
### A helpful git config
6060
6161
```
62+
[push]
63+
default = simple
64+
autoSetupRemote = true
6265
[pull]
6366
rebase = true
6467
[rebase]
@@ -85,6 +88,7 @@
8588
8689
What does it do?
8790
91+
- When pushing new branches, automatically set the upstream branch to a branch with the same name on the primary remote
8892
- Auto rebase on pull and auto stash, on rebase (configured in git config)
8993
- Git Alias `fixup = "!git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"`
9094
- Allows committing current staged changes as a fixup commit for a previous commit

0 commit comments

Comments
 (0)