简单的命令行入门教程:
Git 全局设置:
git config --global user.name "username" git config --global user.email "xxx@xxx.com"
一,创建 git 仓库:
mkdir kill_baidu cd kill_baidu git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://git.oschina.net/username/project.git git push -u origin master
二,使用已存在项目?
cd existing_git_repo git remote add origin https://git.oschina.net/username/project.git git push -u origin master