- 安装好git。
- 登录gitHub官网。https://github.com/
- 创建一个你的仓库。
- 创建仓库完成
4.在本地电脑新建一个文件夹。
5.进入创建的文件夹(testGitHub),右击点击 Git Bash Here.
6,打开Git Bash Here。开始连接远程仓库。
git init //初始化仓库
git remote add origin https://github.com/XiaoHong125/demo2.git // 链接仓库
git remote -v //检查仓库是否连接完成
git add . //添加本地文件
git commit -m "first commit"
git push -u origin master
7,用vscode打开项目, 改动项目。
8.以上就完成github的创建仓库,下拉代码,上次代码。