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、给Laravel取个好听的中文名字吧
https://www.onexin.net/laravel-chinese-name/

2、[个人潜能7B]不再自我破坏财务
https://www.onexin.net/personal-potentials-7b-is-no-longer-self-destruction-of-the-financial/

3、tinymce最快速写作
https://www.onexin.net/tinymce-fastest-writing/

4、Installing the Google PHP SDK on Linux
https://www.onexin.net/installing-the-google-php-sdk-on-linux/

5、文字在网页上面的应用
https://www.onexin.net/%e6%96%87%e5%ad%97%e5%9c%a8%e7%bd%91%e9%a1%b5%e4%b8%8a%e9%9d%a2%e7%9a%84%e5%ba%94%e7%94%a8/

Leave a Reply