Do not want to switch the entire repository to an older commit and back?...
A combination of git aliases/awk/shell-functions to the rescueHere is a quick and intuitive way to checkout a older version of a single file in git.
Basically the command does a git log on the specified file and picks the appropriate commit-id in the history of the file and then runs git checkout to the commit-id for the specified file.
Essentially, all that one would manually do in this situation, wrapped-up in one beautiful, efficient git-alias - git-prevision
Liked git-prevision? Help others discover git-prevision.
Upvote git-prevision on StackOverflow.
No comments :
Post a Comment