美文网首页
git && gitee

git && gitee

作者: developerAbble | 来源:发表于2018-05-27 00:39 被阅读8次
  • 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

相关文章

网友评论

      本文标题:git && gitee

      本文链接:https://www.haomeiwen.com/subject/zubvjftx.html