Skip to content

Commit

Permalink
feat: Prefer "upstream" push strategy by default
Browse files Browse the repository at this point in the history
Makes it easier to see what's the status of the topic branch in relation
to the upstream.

Highly recommended by tpope
tpope/vim-fugitive#1700 (comment)

Simple has been default since Git 2.0 and is good for beginners.

  upstream - push the current branch back to the branch whose changes
  are usually integrated into the current branch (which is called
  @{upstream}). This mode only makes sense if you are pushing to the
  same repository you would normally pull from (i.e. central workflow).
  • Loading branch information
heymatthew committed Dec 10, 2023
1 parent cd05eae commit 5b57eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion softlinks/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
verbose = true
template = ~/.gitmessage
[push]
default = simple
default = upstream
autoSetupRemote = true
[pull]
rebase = true
Expand Down

0 comments on commit 5b57eb2

Please sign in to comment.