Skip to content

Commit

Permalink
Add --discard-changes to git switch
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromxavier committed Sep 26, 2024
1 parent 1cc5f29 commit 76278d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/multimake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function deploymultidocs(
if !success(`git checkout $branch`)
has_branch = false

if !success(`git switch --orphan $branch`)
if !success(`git switch --orphan --discard-changes $branch`)
@error "Cannot create new orphaned branch $branch."

exit(1)
Expand Down

0 comments on commit 76278d3

Please sign in to comment.