Zip your project using the Git command

Danilo Massoni
2 min readApr 9, 2023

--

A history fictional to a situation reals.

John’s story!

In the world apocalyptic, Jhon needs save the code of Automatic Planting. Your zone of security it is staying out of food and Jhon need go to other place. The zone in wich Jhon go, maybe no have internet. With that, he needs save your code in a pen drive.

To improve your Git knowledge, Jhon go use a commad to save your Project.

Photo by Nikoli Afina on Unsplash

The first step is you install GIT in your computer. Install GIT in: https://git-scm.com/downloads

In paste of the Project, click on the Git Bash Here. Or open the Git Bash in your Project.

Open the Git Bash

Do commit initial:

git add .
git commit -m "Commit initial"

Is good always check your logs, with:

git log

Create a Tag to mark a version of your code.

git tag packed

Do the transformation of your Project in a archive zip. Use the command archive:

git archive packed --format=zip --output=name-of-archive-packed.zip

Ok! Your code is zip and ready to travel to any place of the world!

Zip code

Jhon can travel to other zone and to take your code of Automatic Planting.

My name is Danilo Massoni. I share thing of the tecnology here and my social medias.

I’m improving my English, maybe there are spelling erros. If you have tips, send me! Thanks 🤗

--

--

Danilo Massoni

Simplificando Tecnologia — Desenvolvedor alinhando tecnologia e educação | Simplifying Technology — Developer aligning technology and education.