Planet of NCCUCS
dosbox windows resolution Buy Microsoft Windows Server 2008 Web Edition SP2 configure internet connection on windows xp consumer ratings on vinyl windows Buy Microsoft Windows 7 Professional buy dhcp windows 2000 server apple usb keyboard windows drivers Buy Microsoft Office Visio Professional 2007 buy windows xp registration number buy windows applications Buy Microsoft Windows XP Professional SP3 disable autoplay cd windows 2000 asms windows xp home Buy McAfee Total Protection 2009 autocad lt autodesk contemporary windows Buy Cyberlink PowerDVD 8 Ultra check windows genuine effects for windows movie maker Buy Corel VideoStudio Pro X2 audio codec windows cannot end programs in windows xp Buy CorelDraw Graphics Suite X4 borland delphi 5 and windows vista cannot open windows updates Buy Autodesk AutoCAD 2009 checkpoint ngx r65 windows 2003 download terminal services client windows 2000 Buy Autodesk AutoCAD 2010 download windows xp file debug windows application Buy Autodesk 3Ds Max Design 2009 convert dbx outlook express windows mail automatically reboot windows xp Buy Ahead Nero 9 ashampoo defrag windows xp serious error cannot install printer driver windows 2000 Buy Microsoft Office 2003 Professional apple toolbar for windows delay write failed windows xp Buy Microsoft Office 2007 Enterprise cleanup windows startup

Git 如何切換不同版本

作者:Anderson on 二月 27, 2009 Posted in RSS | | 觀看文章來源

本來以為

因為git並沒有所謂版本號碼,所以無法直接換回某版本。
但是git還是有用”特殊字串”來表示各個上傳的版本。

需要先

1. diff

2. patch 回 想要換回的版本

3. git commit

等於是再上傳一次 !

但是發現

git reset [version number]

就可將local端的git index reset 回到某一版本

那只是替換成遠端的版本呢 ?

先砍掉local端的檔案,再git pull是不行的。

因為git 的index 並沒有更新

需要先

1. 砍掉local端的檔案
rm xxx

2. 從local端的git index中去除
git rm xxx

3. 接著checkout
git checkout

就會把xxx 救回來

相關文章:

好物推薦:Git

:

讀過本文的讀者, 也對以下文章有興趣

No comments for this entry yet...

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

最新文章

照片

R0012028R0012036R0013553R0013551R0013550R0013549R0013560R0013558R0013569R0013561R0013570R0013571R0013580R0013581R0013556R0013567R0013563R0013572R0011783R0012312