Warning: you are leaving 1 commit behind, not connected to any of your branch,解决方案

Warning: you are leaving 1 commit behind, not connected to any of your branch,解决方案
原因:我在非分支下开发,并提交了代码。

可以看一下,这个项目有哪些分支:
Warning: you are leaving 1 commit behind, not connected to any of your branch,解决方案
所以,是没有``6404f4d分支的,然后在当前6404f4d```下是不能push 代码到仓库的!因为远程没有这个仓库。所以我们切换分支到dev,我的需求是,把之前开发的代码合并到dev分支。
Warning: you are leaving 1 commit behind, not connected to any of your branch,解决方案
那我们有什么办法呢?肯定是有的!

可以git cherry-pick 6404f4d 如果它只是一个提交。
接下来就是正常的提交操作了。