快速使用git上传项目

首先,先安装git然后

在本地项目文件中右键使用git bash here

$ git config --global user.name "你的名字" 在git中设置用户名

$ git config --global user.email "你的邮箱" 在git中设置你的邮箱(gitee 或 github中注册时所用)  

$ git init 初始化

$ git remote add origin https://git**.com/*****/****.git (你的远程项目地址)就是将本地的库链接到远程仓库

$ git clone https://****.git (你的远程项目地址) 就是创建好仓库后 clone and download下的地址 把仓库内容克隆到本地

$ git pull origin master 

$ git add . 把项目所有文件添加进去

$ git commit -m "随便填写内容"(可以是你所需要的提示信息)

$ git push origin master 此操作目的是把本地仓库push到git上面,此步骤需要你输入帐号和密码

posted @ 2019-03-11 15:36  natural_law_hwh  阅读(289)  评论(0编辑  收藏  举报