Skip to content

vibhubanka/scripts-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Scripts

Descriptions

Creates a zip file by comparing the your git project's origin/master and provided commit ID. The created zip file keeps the folder structure intact.

Use Case: In a project, when there is lack of a common git repository between teams, it makes code sharing a tedious job. This script makes an attempt to solve this problem by allowing collaborators to share only the modified files in zip format.

Usage

For using the script as a CLI tool. Add the below line to your .bashrc (add it to .zshrc if you are using ZSH)

alias custom_command="bash <(curl -s https://raw.githubusercontent.com/vibhubanka/scripts-collection/master/script_name.sh)"

After adding alias, reload the rc file using source.

source path/to/rc_file

Go the git project where you want to execute the script.

cd ~/path/to/project

Test if it works fine or not!

custom_command

Example:

echo "alias zipd=\"bash <(curl -s https://raw.githubusercontent.com/vibhubanka/scripts-collection/master/zipDiff.sh)\"" >> ~/.bashrc
source ~/.bashrc
cd ~/projects/my-project
zipd myZipFileName.zip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages