Git 仓库管理简易的命令行入门教程

Git 全局设置:

git config --global user.name "ONEXIN"
git config --global user.email "onexin@qq.com"

创建 git 仓库:

mkdir Z-BlogPHP-OBD
cd Z-BlogPHP-OBD
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/ONEXIN/Z-BlogPHP-OBD.git
git push -u origin master

已有仓库?

cd existing_git_repo
git remote add origin https://gitee.com/ONEXIN/Z-BlogPHP-OBD.git
git push -u origin master

转载请注明出处:https://www.onexin.net/git/

随机文章:

1、通过Certbot免费申请https证书(Let’s Encrypt)
https://www.onexin.net/certbot-https-lets-encrypt/

2、Centos7.x 新系统维护使用的命令
https://www.onexin.net/centos7-0-new-system-to-maintain-the-command-you-will-use/

3、Discuz!Q Windows下提示 SSL 相关函数不可用如何解决?
https://www.onexin.net/discuzq-windows-ssl/

4、向各大搜索引擎提交sitemap.xml的方法
https://www.onexin.net/sitemap-xml-to-the-major-method-of-search-engine-submission/

5、新增一些WEB网站建设实用tool
https://www.onexin.net/add-some-useful-production-tools/

Leave a Reply