- There is a project in localhost. First, run
git init
/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/
- New project in gitee && got the address(https). Then,
git remote add origin ProjectAddress
.
git remote add origin https://git.oschina.net https://gitee.com/abbsmile/OfficialNetwork_qianzhuo.git
- git add && git commit && git push
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
- last, in CentOS in aliyun
git clone https://gitee.com/abbsmile/OfficialNetwork_qianzhuo.git
网友评论