ondoho,
Been on travel for a week and just returned. No problem with any snarkiness. For example, your
git 1 link returns an error stating "Can't connect securely to this page" and the firewalls do not allow an insecure connection. It is even more difficult because my Linux box is completely isolated and I cannot copy paste to ask questions.
I am working on tutorials. When I get a log file listing, rather than a file name I can only get the SHA1 number. But that number means nothing to me. I am looking for a way to convert that number to a file name. Seems like someone would have written a script to read those log outputs and somehow fetch the actual names and present that to the user. That is my current plan of attack. I remain a Linux novice.
Edit:
from here:
http://www.vogella.com/tutorials/Git...ommitreference
Section 28.1 is titled Retrieving file from the history. It has this example command:
Quote:
git show [reference]:[file_path]
|
I am unable to determine exactly what to insert in place of [reference]. The SHA number does not work and the file path/name is already there.
In my directory, with a local git repository, there is a file named:
Walkthrough template.odt. The goal is to retrieve not the last committed version but the one before that. What steps will accomplish this goal?
Edit 02
After looking at an example that compressed multiple commands and responses one line with no explanation I have discovered this method. Begin with:
This provides a list of commits shown with one line per commit and shown as repeats of
Quote:
Reference_number commit_comments
|
There is one line for each commit and each has a unique reference number.
If the person doing the commit made good comments then you can select the commit to use. Then enter:
Code:
git reference_number file_name
Where reference number is the number at the beginning of one of the commit lines and the file name is simply the name of the file to be restored.
Several sites have that format, but don’t describe what that reference number is.
So, is this a valid method? It worked for my test directory but will it always work?
Still, a question remains. What command will show the file(s) saved with a given commit command?