On Wed, Jul 16, 2014 at 04:34:50AM -0700, K.V. Lakshmi wrote:
> Hello!
>  
> I have created a project folder that has various word/text files, 
> excel/.xml files, and presentations in my local system. I have intialized, 
> staged and committed all the files of the folder in GIT. As an exercise, to 
> get familiarised with GIT, I have modified one of the word document, staged 
> and committed successfully. It got saved as a new version.
>  
> Now, if I try to retrieve back the original word document, what should I 
> do? I am able view the document in GIT file viewer, but unable to open the 
> .docx file.
> Is there any provision to download the older file link from GIT older 
> versions.

You have to check out an "older changeset", e.g. `git checkout HEAD^`,
in order to retrieve an earlier version.

> I am having one more querry, the GIT will show the difference
> between previous and current word/text document. But its not doing
> the same for excel/.xls file.

Git works out of the box with text files (source code) if you put
other kinds of files in and want diff/merge you need to tell git how
to do it.  It's all controlled using attributes, see `man
gitattributes`.

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

Goto labels should be left-aligned in all caps and should include the
programmer's name, home phone number, and credit card number.
     -- Abdul Nizar

Attachment: pgpaEaSiQftZl.pgp
Description: PGP signature

Reply via email to