创建码云账号
官网地址:https://gitee.com/
注册:填写邮箱注册账号
我的码云账号:gzf6031*****@163.com
添加ssh公钥
参考地址:https://gitee.com/help/articles/4181
打开终端,将红色字替换成自己的邮箱,并按照提示继续
文件位置:快捷键shift+command+G,输入~/.ssh
将文件内容拷贝 https://gitee.com/profile/sshkeys
你确定想要添加到可信列表中?yes
- 创建本地分支:git checkout -b xxx
- 本地分支推送到云端存储:git push -u origin xxx
- 查看文件状态:git status
- 查看当前所处分支:git branch
- 添加到暂存区:git add .
- 再次查看文件状态:git status
- 提交到本地:git commit -m ""
- 代码推送到云端:git push
- 查看当前所处分支:git branch
- 切换主分支:git checkout master
- 合并子分支:git merge xxx
- 将master分支推送云端:git push