将本地git项目与所有未提交的更改和存储绑定(git bundle on steroids)。

Git-Bundle-Plus的Python项目详细描述


Git Bundle Plus

将本地git项目与所有未提交的更改、未保存的文件和存储(git bundle on steroids)捆绑在一起。

内容

Requirements ✅

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 ⚙️

  1. ^{} is run and all the previously stashed items are tagged with the pattern ^{}. Example: ^{}.
  2. Stash uncommited and unstaged changed using ^{}. If a stash is created, this stash will be assigned the tag ^{}.
  3. Bundle the git project using ^{} and the bundle is placed in the git folder.
  4. 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.

License ?

MIT

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何在java中调用Paint组件方法   多层次POM中的java覆盖依赖项/插件管理   java模式识别   JavaSpringMVC+Log4j2定义了Log4j2。未标识非类路径位置中的属性文件   java我们如何将IntelliJ IDEA中的maven和gradle项目与源代码浏览支持集成?   Maven mvn exec:java在Windows上工作,但不是Ubuntu 20   java在Jaxb2Marshaller上使用带有packagesToScan属性的JAXBElement时没有端点适配器   java删除方法和节点   java如何为某些场景创建正则表达式模式   java如何通过gridView中的intent()传递ArrayList数据。setOnItemClickListener()   java UnsupportedClassVersionError 1.7/1.5   java为什么JVM参数是http。tomcat servlet没有使用proxyHost?   java将ArrayList从字母顺序排序到最频繁/最不频繁   java动态字段列表迭代   java如何将字节转换为位?   hadoop java。mapreduce作业中的lang.NullPointerException   javasocketIO无法与Android中的LocationListener一起使用   java在卸载时清除内部存储   java池回收错误2个精灵同时碰撞到一个精灵