上传工程到github

创建的本地工程第一次上传到github的步骤如下:

1、本地工程
git init
git add .
git commit -am "Hello"

2、关联远程仓库
git remote add origin https://github.com/tingzi/savePicture.git
git fetch origin master:remote_master
git rebase remote_master
git push origin master:master

猜你喜欢

转载自my.oschina.net/tingzi/blog/1818124