常用git命令
2016-09-14 本文已影响8人
奋斗君vs渝
简易的命令行入门教程:
Git 全局设置:
git config --global user.name "XIONGchanghu"git config --global user.email "15682381738@163.com"
创建 git 仓库:
mkdir gclaravelcd gclaravelgit inittouch README.mdgit add README.mdgit commit -m "first commit"git remote add origin https://git.oschina.net/XIONGchanghu.com/gclaravel.gitgit push -u origin master
已有项目?
cd existing_git_repogit remote add origin https://git.oschina.net/XIONGchanghu.com/gclaravel.gitgit push -u origin master