看板 Programming 關於我們 聯絡資訊
請教版上大大,git的狀況如下圖: https://drive.google.com/open?id=0BzNx6G9C9YE0REFNa0M1QVhyXzA 要將9a9的local master還原到842的commit 讓local的master跟local HEAD及origin的HEAD/master可以在同一個commit 有沒有什麼好方法可以達到? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 203.208.196.50 ※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1438047520.A.618.html
COLDTURNIP: git checkout master && \ 59.115.50.69 07/29 03:09
COLDTURNIP: git pull --rebase && git push 59.115.50.69 07/29 03:10
COLDTURNIP: 如果要保留 uncommitted change,那就 59.115.50.69 07/29 03:11
COLDTURNIP: 在最前下 git stash、最後下 59.115.50.69 07/29 03:11
COLDTURNIP: git stash pop 59.115.50.69 07/29 03:11