git 本地仓库关联远程
Git全局设置
git config --global user.name "Pan"
git config --global user.email "oncwnuGR3HMB_bj1Edp0xUCI-PYg@git.weixin.qq.com"
git config --global user.name "Pan"
git config --global user.email "oncwnuGR3HMB_bj1Edp0xUCI-PYg@git.weixin.qq.com"
创建一个新的版本库
git clone https://git.weixin.qq.com/panjing/xcx.git
cd xcx
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
git clone https://git.weixin.qq.com/panjing/xcx.git
cd xcx
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
现有的文件夹或Git版本库
cd existing_folder
git init
git remote add origin https://git.weixin.qq.com/panjing/xcx.git
git add .
git commit
git push -u origin master
cd existing_folder
git init
git remote add origin https://git.weixin.qq.com/panjing/xcx.git
git add .
git commit
git push -u origin master