首页 > 解决方案 > 无法将新的/本地文件夹添加到 Repo

问题描述

我克隆了一个本地仓库:

C:\克隆回购

然后我将一个带有脚本的新文件夹添加到我的本地克隆存储库

c:\克隆的-repo\Utils....

我需要检查这个新文件夹回到原点

正在做 :

cd Utils\
git add .
git commit 
git commit -m "message" --all
git push

不这样做。

我究竟做错了什么?

谢谢

标签: git

解决方案


试试这些命令:

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)

推荐阅读