Zipping all files in a Git repository

Hello,

This is a quick / reference post illustrating how to archive (zip format) all the files in a branch in a Git repository.

From the command prompt, type:

 
git archive --format=zip -o files.zip master

Explanation:

  1. The “–format” argument lets you specify the archive type. I used the zip file format
  2. The “-o” argument lets you specify the output file name
  3. master” is the name of the branch to be archived.

 

flower separator
batchography-good-resDo you want to master Batch Files programming? Look no further, the Batchography is the right book for you.

Available in print or e-book editions from Amazon.
flower separatorYou might also like:

 

One theory about why numbers are written the way they are

Many years ago, I was reading in Thiaoouba Prophecy book by Michael Desmarquet. A very nice book.

Anyway, in that book, there was a mention about numbers and why they are written the way they are. The alien in the book explains that the numbers are written like this because of the number of angles each number have:

You might also like:

Futurama: Bender – Robot Grace – or the Geek’s prayer

If you are a fan of Futurama, and Bender the bending robot in particular, you might like this audio clip where Bender says grace before eating:

In the name of all that is good and logical, we give thanks for the chemical energy we are about to absorb. To quote the prophet Jerematic, one zero zero zero one zero one zero one zero one zero one… [Time lapse.] Zero zero one… zero one one zero zero one…two.
Amen.

You might also like:

Life is Short – Forgive quickly

It is always cheesy when I enter a shop and find those cliché quotes hanging on the wall! 🙂

I like it, except for the “break the rules” one. I would encourage you to be responsible if you want to break the rules

You might also like:

The girls from Leisure Suit Larry Reloaded

If you’re a fan of Leisure Suit Larry, then you might recognize those ladies from the Larry Reloaded version:

 




You might also like: