Git 全局设置:git config --global user.name "xxxx" git config --global user.email "123456789@qq.com"创建 git 仓库:mkdir wapcd wapgit inittouch README.mdgit add README.mdgit commit -m "first commit"git remote add origin https://git.oschina.net/name/package.gitgit push -u origin master已有项目?cd existing_git_repogit remote add origin https://git.oschina.net/name/package.git git push -u origin --all // git pull origin master --allow-unrelated-histories// git push -u origin master