docs:git:exporting_an_older_version_of_a_file

exporting an older version of a file

If you would like to save a copy of an older version of a file to make it easy to compare in any editor, you do this with git show:

git show branchname:path > newfilename

example:
git show crazyoldidea:lib/foo.php > lib/foo-old.php
  • docs/git/exporting_an_older_version_of_a_file.txt
  • Last modified: 2010/03/15 10:27
  • by billh