Skip to content

Commit

Permalink
Update git config based on LocalStack tips
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Jul 9, 2024
1 parent 6078a9b commit 75829bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/git/global.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
config,
pkgs,
isLinux,
...
Expand All @@ -18,7 +17,7 @@
uc = "update-commit";
graph = "log --graph --all --decorate --stat --date iso";

pushf = "push --force-with-lease";
pushf = "push --force-with-lease --force-if-includes";

# reset $REVIEW_BASE to upstream
sync = ''!f() { git fetch origin && git branch -f "$REVIEW_BASE" origin/"$REVIEW_BASE"; }; f'';
Expand Down Expand Up @@ -96,6 +95,7 @@
"url \"[email protected]:\"" = {
pushInsteadOf = "https://github.com";
};
log.follow = true;
branch = {
autosetuprebase = "always";
sort = "-committerdate";
Expand Down

0 comments on commit 75829bd

Please sign in to comment.