Git Note

作者: 徒言 | 来源:发表于2017-01-20 15:09 被阅读0次

branch rename

// 克隆git项目到本地
git clone https://github.com/xxx/xxx.git

// 查看所有分支
git branch -a

// 删除远程分支(非主分支)
git push --delete origin xxx

// 重命名本地分支
git branch -m xxx ooo

// 推送本地分支
git push origin ooo

git rebase

// 克隆git项目到本地
git clone https://github.com/xxx/xxx.git

// 添加远程仓库
git remote add username https://github.com/xxx/xxx.git

// 更新分支
git fetch username

// rebase
git rebase username/branch

// 有冲突的话需要解决冲突
[fix conflict]
[git-add]
[git rebase --continue]

// 提交更改
git push

// 发起PR
pull request on website

相关文章

  • Git 常用命令

    Git Note 提交到版本库 git add . -> git commit -m "msg" git comm...

  • Git remove untracked files

    git-clean[https://git-scm.com/docs/git-clean]Note that th...

  • Git note

    note 参照 廖雪峰 的blog 初始一个 git 使用 git init 添加一个文件到git 库里 1. g...

  • GIT NOTE

    1.查看提交记录git log 常用:git status 2.版本回退上个版本 git resest --h...

  • Git Note

    branch rename git rebase

  • Git Note

    创建Git项目 创建仓库目录mkdir dir 初始化仓库git init Git文件管理 把文件加入仓库git ...

  • Using Beyond Compare with Versio

    Git 2.3 and newer (Note: Use bc3 on the command line for...

  • notecloud

    搭建note 1 --初始环境,启动容器 在服务器家目录拉取mynote代码: git clone git@git...

  • Note For Git(Updating)

    发现一个book 参考链接:http://gitbook.liuhui998.com/index.html fat...

  • git study note

    What's the backup after mis-pulled remote data to your lo...

网友评论

      本文标题:Git Note

      本文链接:https://www.haomeiwen.com/subject/xrnwbttx.html