Gitee码云

226 阅读1分钟
创建码云账号
官网地址:https://gitee.com/
注册:填写邮箱注册账号
我的码云账号:gzf6031*****@163.com

添加ssh公钥
参考地址:https://gitee.com/help/articles/4181
打开终端,将红色字替换成自己的邮箱,并按照提示继续
文件位置:快捷键shift+command+G,输入~/.ssh
将文件内容拷贝 https://gitee.com/profile/sshkeys
你确定想要添加到可信列表中?yes

  1. 创建本地分支:git checkout -b xxx
  2. 本地分支推送到云端存储:git push -u origin xxx
  3. 查看文件状态:git status
  4. 查看当前所处分支:git branch
  5. 添加到暂存区:git add .
  6. 再次查看文件状态:git status
  7. 提交到本地:git commit -m ""
  8. 代码推送到云端:git push
  9. 查看当前所处分支:git branch
  10. 切换主分支:git checkout master
  11. 合并子分支:git merge xxx
  12. 将master分支推送云端:git push