git svn - how to revert changes only for one file with git-svn? -


i've corrupted 1 file , i'd revert back. project using git-svn. how can revert 1 particular file? or better if view whole change set of file.

detailed steps appreciated.

git revert sha1_of_faulty_commit 

add changes don't commit

git cherry-pick -n sha1_of_faulty_commit 

modify needs modified, e.g.

git reset head file_that_should_not_have_been_modified 

commit

git commit -m "to_be_merged" 

squash 2 commits, put meaningful comment.

git rebase -i head~2 

review changes, should contains modification on single file you:

git show 

you can push svn

git svn dcommit 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -