1 创建仓库
2 把项目和远程仓库联系起来在
方法一:
2.1 在本地执行clone
git clone https://github.com/jialuoxi/supermall.git
2.2 将本地代码复制到clone出来的文件夹下 (.git隐藏文件夹不要复制)
2.3 按照 https://www.cnblogs.com/polax/p/7381153.html 配置
2.4
git add .
git commit -m '项目初始化'
git push
方法二:
创建test仓库后按照提示依次执行以下代码
git init git add README.md git commit -m "first commit" git remote add origin https://github.com/jialuoxi/test.git git push -u origin master