简易的命令行入门教程:
Git 全局设置
git config --global user.name "KotoriWL" git config --global user.email "450072402@qq.com"
创建 git 仓库
mkdir mode-s cd mode-s git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/kotoriwl/mode-s.git git push -u origin "master"
已有仓库
cd existing_git_repo git remote add origin https://gitee.com/kotoriwl/mode-s.git git push -u origin "master"
出现问题
git push - fatal: unable to access
问题描述:fatal: unable to access 'https://gitee.com/.../': Could not resolve host: gitee.com
解决方案:
git config --global http.proxy "你的代理IP:9999"
git config --global https.proxy "你的代理IP:9999"