Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .fork/custom-commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@
],
"target" : "ref"
},
{
"action" : {
"script" : "git stash save --message \"Pull autostash\"\ngit pull --rebase=true origin --prune\ngit pull --rebase=true gitee.com\ngit pull --rebase=true gitcode.com",
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git pull --rebase=true origin --prune passes --prune as a refspec (because it comes after the remote), so pruning won’t run and the command may fail. Move --prune before the remote name (e.g., git pull --rebase --prune origin).

Suggested change
"script" : "git stash save --message \"Pull autostash\"\ngit pull --rebase=true origin --prune\ngit pull --rebase=true gitee.com\ngit pull --rebase=true gitcode.com",
"script" : "git stash save --message \"Pull autostash\"\ngit pull --rebase=true --prune origin\ngit pull --rebase=true gitee.com\ngit pull --rebase=true gitcode.com",

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script creates a stash (git stash save ...) but never applies/pops it afterward, leaving the user’s local changes hidden in the stash after the pulls complete. Consider using git pull --rebase --autostash ... instead, or explicitly stash pop/apply at the end (ideally only when a stash was actually created).

Suggested change
"script" : "git stash save --message \"Pull autostash\"\ngit pull --rebase=true origin --prune\ngit pull --rebase=true gitee.com\ngit pull --rebase=true gitcode.com",
"script" : "git pull --rebase --autostash origin --prune\ngit pull --rebase --autostash gitee.com\ngit pull --rebase --autostash gitcode.com",

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git stash save --message ... is deprecated in favor of git stash push -m ... in modern Git. Switching to stash push improves forward compatibility and matches current Git CLI guidance.

Suggested change
"script" : "git stash save --message \"Pull autostash\"\ngit pull --rebase=true origin --prune\ngit pull --rebase=true gitee.com\ngit pull --rebase=true gitcode.com",
"script" : "git stash push -m \"Pull autostash\"\ngit pull --rebase=true origin --prune\ngit pull --rebase=true gitee.com\ngit pull --rebase=true gitcode.com",

Copilot uses AI. Check for mistakes.
"showOutput" : false,
"type" : "sh",
"waitForExit" : true
},
"name" : "Pull All",
"refTargets" : [
Comment on lines +40 to +41
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR metadata links fixes #7649, but the referenced issue is about adding a “Push All” command while this change adds “Pull All”. If #7649 is already satisfied by the existing “Push All”, this PR may be closing the wrong issue; please confirm the correct issue link.

Copilot uses AI. Check for mistakes.
"localbranch",
"remotebranch"
],
"target" : "ref"
},
{
"action" : {
"script" : "git push origin refs/heads/${ref} --verbose\ngit push gitcode.com refs/heads/${ref} --verbose\ngit push gitee.com refs/heads/${ref} --verbose",
Expand Down