本文介紹了Visual Studio Code(vscode) git的使用,分享給大家,具體如下:
1.創建一個github賬號
2.在vscode中執行命令
echo "# C-Tests" >> README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/harryluo163/C-Tests.gitgit 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.namegit config user.email
或
git config --list
或查看一下文件
~/.gitconfig
3.回到vs code打開git工作區就會看到所有代碼顯示在這里
4.然后按提示隨便在消息框里輸入一個消息,再按ctrl+enter提交
5.然后把所有暫存的代碼push云端
6.打開github,發生改變了哦
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持VEVB武林網。
新聞熱點
疑難解答
圖片精選