//以develop为源创建本地分支fromdevelop
git checkout -b fromdevelop
git add .
git commit -m "local"
git checkout -b local/dev
//切换到远程分支.
git checkout dev
git clean_git clean -f -d-CSDN博客
git clean -f -d #删除当前目录下没有被track过的文件和目录
git clean -f
git clean -d
git merge local/dev
合并fromdevelop分支到develop分支上:
首先切换到develop分支,再执行: git merge fromdevelop
git reset HEAD^1