git branch -u

在原神的 textmap 中 git pull 时出现

1
2
Your configuration specifies to merge with the ref 'refs/heads/main'
from the remote, but no such ref was fetched.

使用 git branch -u origin/main main 来将main设置为跟踪origin/main的本地分支

来源:文心一言

prompt:如何更改该提示中的configuration :Your configuration specifies to merge with the ref ‘refs/heads/main’ from the remote, but no such ref was fetched.