Re: [git-users] How to put different versions of a compressed file in git repository.
On Wed, 6 Apr 2016 18:17:57 -0700 (PDT) Venkat wrote: > Hi All, > I have a personal file(my profile.md file) with some confidential > information, and this file will be updated with new info in future > days. now my requirement is to compress this file before committing > and whenever if I want to add new content then I will unzip it and > add new content to it and again compress it and add using git. but > in this last step after adding new content and compressing it again > then I am loosing the new content that I added. That must not happen, and I suppose you're doing something wrong outside of Git. Say, the following have to work: git init . editor profile.md ... zip -X9 profile.zip profile.md git add profile.zip git commit -m "First commit" rm profile.md ... unzip profile.zip editor profile.md ... zip -X9 profile.zip profile.md git add profile.zip git commit -m "Second commit" rm profile.md If this fails for you, you're doing something wrong. -- 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.
Re: [git-users] How to put different versions of a compressed file in git repository.
On 7 Apr 2016 3:17 a.m., "Venkat" wrote: > > Hi All, > I have a personal file(my profile.md file) with some confidential information, and this file will be updated with new info in future days. now my requirement is to compress this file before committing and whenever if I want to add new content then I will unzip it and add new content to it and again compress it and add using git. but in this last step after adding new content and compressing it again then I am loosing the new content that I added. > > Can anyone help me on how to maintain versions for compressed files in git? Check https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Keyword-Expansion . /M -- 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.
[git-users] How to put different versions of a compressed file in git repository.
Hi All, I have a personal file(my profile.md file) with some confidential information, and this file will be updated with new info in future days. now my requirement is to compress this file before committing and whenever if I want to add new content then I will unzip it and add new content to it and again compress it and add using git. but in this last step after adding new content and compressing it again then I am loosing the new content that I added. Can anyone help me on how to maintain versions for compressed files in git? Thanks in advance, Venkat -- 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.