Hands-on task
Pull a value out of history
In /root/repo the file version.txt changed several times, and some commits are tagged. version.txt no longer holds the value it had at tag v1.
Extract from history the contents of version.txt as of tag v1 and write them to the file /root/answer.txt (exactly that historical value, unchanged). You should not touch the working file version.txt.
- git show
- revisions
- tags
- rev:path syntax
- file history