Skip to content

Commit

Permalink
improve git config by making switch/checkout operations less ambiguous
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Jun 21, 2024
1 parent 6803981 commit 1ca90ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stow/shell/dot-config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
# Show most recently changed branches first.
sort = -committerdate

[checkout]

# In case of multiple remotes, prefer origin (e.g. during git switch/checkout operations)
defaultRemote = origin

[core]

# Use custom `.gitignore` and `.gitattributes`.
Expand Down

0 comments on commit 1ca90ff

Please sign in to comment.