我需要使用 npm git 命令才能在项目中使用 git 吗?

问题描述 投票:0回答:1

我需要使用

npm i -g git
才能在VSC项目中使用git吗?我问是因为我刚刚从官方网站下载了 git,现在需要在我的项目中使用它

我还没有尝试太多,因为我刚刚完成了 SSL bug 的出厂重置,但不想已经调试某些东西(将其保存到我的项目😂)

node.js git npm npm-install
1个回答
0
投票

您可以从官方网站使用git。您可以使用 cmd 或 git bash 进入您的项目路径并使用它:

git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/"Your repositories adress" 
git push -u origin main
© www.soinside.com 2019 - 2024. All rights reserved.