1、将代码放到码云
- 到码云里新建一个仓库,完成后码云会有一个命令教程按上面的来就行了
- 码云中的使用教程
Git 全局设置:
git config --global user.name "ASxx"
git config --global user.email "[email protected]"
创建 git 仓库:
mkdir wap // 项目在本地的路径
cd wap
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://git.oschina.net/name/package.git // 远程仓库地址
git push -u origin master
已有项目:
cd existing_git_repo
git remote add origin https: