批踢踢實業坊
›
看板
Linux
關於我們
聯絡資訊
返回看板
作者
shihyu (shihyu)
看板
Linux
標題
[問題] git 還原到某個日期
時間
Sun Sep 23 11:54:13 2012
我想把Android 所有程式碼還原到一個時間點的程式碼 可能要使用 repo forall -c xxxxx 請問要怎麼去做這樣還原? 謝謝 --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.204.66.89
→
dearlove
:git checkout .... 這樣?
09/23 12:25
→
shihyu
:我是想還原到一個日期時間的程式版本
09/23 12:33
→
n3oanderson
:V=`git rev-list -n 1 --before=$date_time master`
09/23 15:59
→
n3oanderson
:git checkout $V
09/23 16:00