Git bash使用简介

一、创建远程仓库

二、clone远程仓库到本地

git clone https://github.com/zhang134679/MQTT.git

三、更改本地仓库内容

git add README.md
git commit -m "first commit"

四、更新到远程仓库

git remote add origin https://github.com/zhang134679/mqtt1.git
//git push -u origin master   //首次     $ git pull --rebase origin master   //解决不一致状态
git push origin master   	//非首次

你可能感兴趣的:(GIT)