Export a Git Branch to Zip File with Alias

When using Git you may want to sometimes add the files from a Git Branch to a Zip file.
Luckily Git has this feature built in so its very simple to do.

Git Command

The Git command to Zip a Git branch is like this

Git Alias Shortcut

Install

Now we can simplify that even more by assigning it to a Git Alias. To assign the Git Alias we must either add it to a .gitconfig file or you can run the Git config Alias command like this in the terminal.

Usage

After assigning the Git Alias we can simply call this in the terminal to build our Zip file from a Git branch.