1.检查有无git add或者git add的文件是否存在; 2.git push命令提交会提交到远程对应名称的分支,例如本地是dev分支,如果要提交到远程master分支,就用git push origin dev:master。