This article talks about how to push the local code base to the remote empty code repository.
To learn how to clone the code from the remote code repository to the local one: see here
1. Create a code repository
2. Enter the local code library folder from the terminal
3. Connect the local and remote ends and give the remote end a name.
git remote add myOwnCoding [email protected]:地址/远程项目名称.git
For example, the above warehouse is: (name it myOwnCoding)
git remote add myOwnCoding [email protected]:alancao/cs/test.git
Click here to view the specific usage of git remote
4. Submit and push the local code
git add . //添加目录下所有文件以托管
git commit -m ‘本次提交备注信息’ -n //提交
git push -u origin development //推送本地development分支到远端默认master分支
Click here to view the specific usage of git push
Any questions: please send to email: [email protected]