将本地git项目与所有未提交的更改和存储绑定(git bundle on steroids)。
Git-Bundle-Plus的Python项目详细描述
Git Bundle Plus
将本地git项目与所有未提交的更改、未保存的文件和存储(git bundle on steroids)捆绑在一起。
内容
- Requirements
- Installation
- Usage
- Example
- .bundle output + retrive git project
- How it works
- Like
- Contributers
- Contribute
- License
Requirements ✅
- Python 3
Installation ?
Using pip
Use the package manager pip安装Git-Bundle-Plus。
pip install git-bundle-plus
克隆+python 3
git clone https://github.com/an23lm/GitBundlePlus.git
python ./gitbundleplus [-h] path
用法
gitbundleplus [-h] path
-h:帮助
path:要捆绑的本地git项目文件夹的路径
注意:在项目上使用gitbundleplus
之后,将隐藏未提交和未保存的文件。如果您不再需要这些文件,可以使用git stash apply
轻松检索这些文件,并使用git stash drop
删除应用的存储。
示例
捆绑项目
gitbundleplus ~/Documents/mygitproject
分拆项目
git clone ~/Documents/mygitproject.bundle
检索未合并和未更改的更改
git stash apply ga-stash-tag-{ga-latest}
.bundle
输出+检索git项目{/h2>
<git-folder-name>.bundle
将在指定的git文件夹中创建。
要解开捆绑的git项目,请克隆捆绑包。
git clone path/to/bundle
恢复未声明和未提交的更改。
在绑定之前,所有未声明和未提交的更改都被隐藏(git stash
)和标记(git tag
)。
git stash apply ga-stash-tag-{ga-latest}
完成申请后,删除标记以删除存储。
git tag -d <tag-name>
找到并应用以前隐藏的更改。
git tag list
查看以前隐藏的所有更改,用模式标记。根据您的要求应用和丢弃这些标记的藏品。
git stash apply <tag-name>
完成申请后,删除标记以删除存储。
git tag -d <tag-name>
注意:未绑定的项目不会签入到您当前的工作分支。它们默认为master
分支。请注意,在应用隐藏的更改之前,使用git checkout <branch-name>
开始使用特定分支。
请阅读How it works了解更多信息。
How it works ⚙️
- ^{
} is run and all the previously stashed items are tagged with the pattern ^{ }. Example: ^{ } . - Stash uncommited and unstaged changed using ^{
}. If a stash is created, this stash will be assigned the tag ^{ }. - Bundle the git project using ^{
} and the bundle is placed in the git folder. - All the tags from the original git project will be removed. Example: ^{
} .
Show some love ❤️
If you found this interesting or helpful, leave a star. ⭐️
Contributers ????
Contribute ?
Pull requests are welcome.