If you're using git to manage you files, and you have some changes to some files, and you want to throw away the changes (i.e. revert to the previous checked in version), then you can do it with this:

git checkout path/to/myfile.ext

(replace the path/to/my/file.ext with the path/filename of the file you want to 'revert')

This is the git equivalent of svn's svn revert path/to/myfile.ext

Published on

Tags:

Previous Post: Next Post

Back to Celtic Knot Creator blog