vscode python 入门教程(二) vscode使用gti 管理代码

vscode 代码管理需要用管道git的命令,这点和idea的代码管理区别比较大。
作为java开发需要自己熟悉适应一下。

一、GitHub 新建一个仓库

过程略

二、本地git 项目初始化

git init

vscode 中可以看到 文件状态

git status

使用git remote 命令吧本地git 仓库和远程git 仓库链接起来

git remote add oraign [email protected]

提交代码

git commit -m "评论"

推送代码

git push

三 、git 提交新增文件

新建一个list 文件,然后使用git add 命令 添加文件

vscode python 入门教程(二) vscode使用gti 管理代码_第1张图片

git commit -m "添加一个新文件"

git push

vscode python 入门教程(二) vscode使用gti 管理代码_第2张图片

你可能感兴趣的:(vscode,ide,编辑器)