1。git init 当前的工程就会成为一个git 仓库 2. git remote add origin https://** 3. git branch –set-upstream-to=origin/master 4. git pull –rebase 5git push
参考:http://www.cnblogs.com/mengdd/p/3447464.html