Bundle a local git project with all uncommitted changes, unstaged files, and stashes (git bundle on steroids).
- Requirements
- Installation
- Usage
- Example
- .bundle output + retrieve git project
- How it works
- Like
- Contributers
- Contribute
- License
- Python 3
Use the package manager pip to install Git-Bundle-Plus.
pip install git-bundle-plus
git clone https://github.com/an23lm/GitBundlePlus.git
python ./gitbundleplus [-h] path
gitbundleplus [-h] path
-h : Help
path : Path to local git project folder you would like to bundle
⚠️ Note: After using gitbundleplus
on a project the uncommitted and unstaged files will be statshed. You can easily retrieve these files by using git stash apply
and drop the applied stash with git stash drop
if you have no further need for it.
gitbundleplus ~/Documents/mygitproject
git clone ~/Documents/mygitproject.bundle
git stash apply ga-stash-tag-{ga-latest}
<git-folder-name>.bundle
will be created in the git folder specified.
git clone path/to/bundle
All the unstaged and uncommitted changes are stashed (git stash
) and tagged (git tag
) before bundling.
git stash apply ga-stash-tag-{ga-latest}
Delete the tag to drop the stash after your done applying.
git tag -d <tag-name>
git tag list
to view all your previously stashed changes, tagged with the pattern ga-stash-tag-{<stash-number>}
. Apply and drop these tagged stashes as per your requirements.
git stash apply <tag-name>
Delete the tag to drop the stash after your done applying.
git tag -d <tag-name>
⚠️ Note: Unbundled projects do not checkout to your current working branch. They default to master
branch. Please, take care to use git checkout <branch-name>
to start using a particular branch before applying stashed changes.
Please read How it works for more information.
git stash list
is run and all the previously stashed items are tagged with the patternga-stash-tag-{<stash-number>}
. Example:git tag ga-stash-tag-{0} stash@{0}
.- Stash uncommited and unstaged changed using
git stash -u
. If a stash is created, this stash will be assigned the tagga-stash-tag-{ga-latest}
. - Bundle the git project using
git bundle <git-folder-name>.bundle
and the bundle is placed in the git folder. - All the tags from the original git project will be removed. Example:
git tag -d ga-stash-tag-{0}
.
If you found this interesting or helpful, leave a star. ⭐️
Pull requests are welcome.