git-pull-rebase
10期 2012年2月27日

git-pull-rebase

当我们向github做push的时候经常会被rejected,解决方法有pull和rebase两种,这一集里我们讨论一下这两种方式的异同。

Resources:

~/.gitconfig
[user]
    name = Peter Wang
    email = happypeter1983@gmail.com
[core]
    editor = vim
[alias]
    ci = commit -a -v
    co = checkout
    st = status
    br = branch
    throw = reset --hard HEAD
    throwh = reset --hard HEAD^
[color]
    ui = true
[push]
    default = current
terminal
vim .git/config
vim .git/refs/remote/origin/master
git fetch origin
git rebase origin/master
happypeter 11 个月前

people can also use

git pull --rebase

instead of

git fetch origin/master
git rebase origin/master
Jacky 7 个月前

讲的很清楚,演示的很形象,赞!

libuchao 4 个月前

其实我觉得单纯 pull 这种在不同时间线上的情况,才符合真正发生的实际历史