Reverting one file in GitKraken -


it possible in gitkraken revert single file instead of entire commit? cannot see such option file, commit. seems gitkraken has poor functionality. thanks.

answer

a revert in git-sense of can performed on commit. introduces new commit negates reverted commits' changes. see here. gitkraken supports this: right click on commit, revert <branch> commit.

what want accomplish, however, can done via git checkout. not think gitkraken supports funtionality single file yet. can, however, use command line.

reset single file via command line

git checkout <commit> <file>

check out previous version of file. turns resides in working directory exact copy of 1 , adds staging area.

from here.

git checkout head~1 <filename> reset single file commit before current head.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -