On Wed, Jul 16, 2014 at 6:34 AM, K.V. Lakshmi <lakshmiau...@gmail.com> 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. > > 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. > > Please, try to answer me in this regard.
Expanding somewhat on what Magnus said: git can save Microsoft Office files just fine. However, the "differences" reported by git are determined using a program (diff?) which is oriented towards plain ASCII text files. Microsoft Office files are _not_ plain text. The .doc, docx, xls, and .xlsx files are like zip files in that they are compressed and contain "sub files". Kind of like how a .zip file is compressed and contains other files. Bottom like, the "diff" process in git is not designed to find differences in compressed files which embedded sub-files. Off topic for git: You can have MS Word track changes internally by enabling the "track changes". In MS-Word 2007 (what I have installed), this is done by clicking on "Review" on the toolbar at the top, then clicking on "Track Changes", or do a <shift><control>e. I don't of if Excel has anything like this or not. > > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.