简易的命令行入门教程:

Git 全局设置:
git config --global user.name "lishaohua"
git config --global user.email "monlone@163.com"
在本地创建 git 仓库:
mkdir weiphp-zn
cd weiphp-zn
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://git.oschina.net/monlone/weiphp-zn.git
git push -u origin master
在本地已有项目?
cd existing_git_repo (cd D:/xampp/htdocs/wechat)
git remote add origin https://git.oschina.net/monlone/weiphp-zn.git
git push -u origin master

分类: web

标签: