vscode里如何用git
打开vs终端执行如下:
1 初始化 Git 仓库(如果尚未初始化)
git init
2 添加文件到 Git 仓库
git add .
3 使用
git commit
命令来提交你的更改。确保在提交时加上一个有用的消息。git commit -m "备注信息"
4 配置远程仓库
git remote add origin <你的Gitee仓库URL>
5 推送代码到 Gitee
git push -u origin master
打开vs终端执行如下:
1 初始化 Git 仓库(如果尚未初始化)
git init
2 添加文件到 Git 仓库
git add .
3 使用
git commit
命令来提交你的更改。确保在提交时加上一个有用的消息。git commit -m "备注信息"
4 配置远程仓库
git remote add origin <你的Gitee仓库URL>
5 推送代码到 Gitee
git push -u origin master