2012-08-15 1 views

답변

0

다음 자식 명령 ... 원격 변경 사항을 되돌릴 수

//reset your local index to the desired sha 
git reset --hard sha 

//move the branch pointer back to the HEAD immediately preceding the HEAD at the desired SHA 
//The 'soft' means that the changes made between the HEAD-1 and HEAD at the desired SHA are left in place and are visible as 'new' changes 
git reset --soft [email protected]{1} 

git commit -m "Revert to sha" 

git-tfs checkintool (or whatever syntax you use for pushing to the remote)