![](/img/trans.png)
[英]How can I clone a GitHub repository, then push it to a new repository as origin?
[英]How do I add and push a file into a clone repository in VS
从 VSCode,您可以:
git reset yourfolder
以将其从 Git 索引中删除.gitignore
文件(在您克隆的存储库的根文件夹中),您可以在其中添加您不想添加的文件或文件扩展名例如:
*.exe
*.zip
*.tar
*.tgz
重复add和status:查看Git认为的文件列表更合理。
然后你可以提交和推送。 使用GitLens 扩展将添加更多 Git 功能供您使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.