git && gitee

2018-05-27  本文已影响8人  developerAbble
 /Applications/XAMPP/htdocs/qianzhuo  ls
LICENSE.txt   README.md     application   build.php     composer.json composer.lock extend        public        runtime       think         thinkphp      vendor
 /Applications/XAMPP/htdocs/qianzhuo 
 /Applications/XAMPP/htdocs/qianzhuo  git init
Initialized empty Git repository in /Applications/XAMPP/xamppfiles/htdocs/qianzhuo/.git/
git remote add origin https://git.oschina.net https://gitee.com/abbsmile/OfficialNetwork_qianzhuo.git

Attention:

 /Applications/XAMPP/htdocs/qianzhuo   master  git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin master

so: git push -u origin my branch

git push -u origin master -f
git clone https://gitee.com/abbsmile/OfficialNetwork_qianzhuo.git
上一篇下一篇

猜你喜欢

热点阅读