Git   发布时间:2022-05-05  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Visual Studio Code(vscode) git的使用教程大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

本文介绍了Visual studio Code(vscodE) git的使用,分享给大家,具体如下:

1.创建一个github账号

Visual Studio Code(vscode) git的使用教程

 

2.在vscode中执行命令

echo "# C-Tests" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/harryluo163/C-Tests.git
git push -u origin master

执行时候会让你属于账户密码,vscode

先按照提示去下载git

1.安装

Git:

sudo apt-get install git

全局配置

git config --global user.name "YourName"
git config --global user.email YourName@gmail.com

查看配置

git config user.name
git config user.email


git config --list

或查看一下文件

~/.gitconfig

3.回到vs code打开git工作区就会看到所有代码显示在这里

Visual Studio Code(vscode) git的使用教程

Visual Studio Code(vscode) git的使用教程

4.然后按提示便在消息框里输入一个消息,再按ctrl+enter提交

Visual Studio Code(vscode) git的使用教程

5.然后把所有暂存的代码push云端

Visual Studio Code(vscode) git的使用教程

 

6.打开github,发生改变了哦

Visual Studio Code(vscode) git的使用教程

 

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程小技巧。

大佬总结

以上是大佬教程为你收集整理的Visual Studio Code(vscode) git的使用教程全部内容,希望文章能够帮你解决Visual Studio Code(vscode) git的使用教程所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:Studio