看板 Soft_Job 關於我們 聯絡資訊
請教版上大大,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/Soft_Job/M.1438049432.A.54E.html
walkman: 我看不到圖耶?登入後也看不到 是我太笨嗎... 07/28 10:17
sing10407: 權限沒有開到 07/28 10:41
jazzter: 沒有開到權限@@ 07/28 11:43
sudada: 沒看到圖猜一下 reset-hard後用force push上去 07/28 13:12
fortinet: 沒圖猜, reset-hard還原到一個確定是乾淨的commit,然後 07/28 14:23
fortinet: git pull origin就會是乾淨跟origin同步的commit 07/28 14:23
※ 編輯: FacetheFaith (123.195.41.81), 07/28/2015 19:42:24
FacetheFaith: 權限開好了@@ 07/28 19:42
ntddt: reset-hard +1 07/28 20:58
marfha: 要保留改的code就reset -soft 07/28 21:45