Skip to content

Commit 4f0e703

Browse files
committed
docs: update force push command for GitHub Wiki to use --force-with-lease for safer operations
1 parent 4c71176 commit 4f0e703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/Wiki-Management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ If you don’t want to keep the temporary branch around:
149149
```bash
150150
# Create the split commit SHA and force push it directly
151151
SPLIT_SHA=$(git subtree split --prefix=docs HEAD)
152-
git push wiki "$SPLIT_SHA":master --force
152+
git push wiki "$SPLIT_SHA":master --force-with-lease
153153
```
154154

155155
Afterwards, it’s safe to delete the temp branch:

0 commit comments

Comments
 (0)