a)、在Github创建远程仓库:
b)、给远程仓库url起别名:
git remote -v //显示别名
git remote add mygithub https://github.com/yangaofei/init-repository.git
c)、把本地仓库推送到远程仓库:git push mygithub master
d)、把本地更新推送到远程仓库:
vim Hello.java
git add Hello.java
git commit --m "修改Hello.java 222s" Hello.java
git push mygithub master
e)、把远程仓库克隆到本地仓库:git clone https://github.com/yangaofei/init-repository.git
f)、更新远程仓库中的文件到本地仓库:git fetch origin master
git merge origin/master
git pull origin master