网站制作公司去哪找什么类型网站
前提:git已经安装,并与账号完成密钥绑定
-  
在github上创建一个新仓库


 -  
在项目文件夹下,右击选择
git bash here,打开一个终端对话框

 -  
git init(在项目目录下出现隐藏的.git文件夹,目的是把该项目文件夹变成git可管理的仓库) -  
git status(查看当前状态,多用该命令防止出错) -  
git add .(或 git add 文件名 )将项目中的所有文件添加到仓库中 -  
git commit -m "注释"(把项目提交到仓库)若出现please tell me who you are…
按提示依次执行即可,如:
git config --global user.email “你的账号@qq.com”
git config --global user.name “你的昵称” -  
git remote add origin https://自己仓库的url地址(将本地的仓库关联到GitHub上,)

 -  
查看仓库中的主分支名称(一般为main)和本地的主分支(一般为master),如果不同则使用命令
git branch -m main切换本地主分支名称与远程仓库一致 -  
git push -u origin main(将代码上传到GitHub仓库) 
参考文章
- git的使用
 - git的使用
 
