![](/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.