git - 无法将新的/本地文件夹添加到 Repo
问题描述
我克隆了一个本地仓库:
C:\克隆回购
然后我将一个带有脚本的新文件夹添加到我的本地克隆存储库
c:\克隆的-repo\Utils....
我需要检查这个新文件夹回到原点
正在做 :
cd Utils\
git add .
git commit
git commit -m "message" --all
git push
不这样做。
我究竟做错了什么?
谢谢
解决方案
试试这些命令:
git add . //this will add all changed files
git commit -m "commit message" // committing the changes
git push -u remoteName(should be origin) remoteBranchName(like master, or branch that you created)
推荐阅读
- parsing - 如何从 Haskell、Aeson 中的值中获取 HashMap(对象)?
- angular - 如何获得子参数角度5
- hibernate - 在实体中找不到@IdClass 的属性
- html - 使用 flex 自定义选项卡菜单
- tensorflow - .tflite 的 tensorflow toco 命令
- c# - 预检访问控制允许凭据
- node.js - 如何将谷歌云存储节点getFiles写入文件?
- google-apps-script - 使用 Google Apps 脚本发送的 G Suite 电子邮件未传递“消息被阻止”
- clang - 注册一个新的命令行选项
- java - 混乱 - Java 中的成员可用性