赞
踩
错误代码:
$ git add.
git: 'add.' is not a git command. See 'git --help'.
The most similar command is
add
正确代码为:
$ git add .
问题的内容是:
错误:SRC ReFSPEC主控器不匹配任何。
错误:未能将某些引用推到’git @ Github.com:HaHaa/ftpMal.git’
也就是仓库为空。
$ git push -u origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/zhuoquany/tensorflow2.git'
解决办法:
利用git add xxx.py 指令,将所有的文件全部都添加,然后再进行git commit -m "init"将所有的文件commit,
git commit -m "init"
提示 nothing added to commit but untracked files present 检查git add . 是否执行。
然后在执行
git remote
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。