Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
意思是本地仓库有一个提交,比远程仓库要先进一个commit
.
需要先把这个commit
提交到远程仓库
$ git push origin main
再次
$ git commit -m "test"
On branch main
Your branch is up to date with 'origin/main'.