On Wed, 6 Apr 2016 18:17:57 -0700 (PDT)
Venkat <venkat....@gmail.com> 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.

Reply via email to