ghstack:在命令行上将堆叠的差异提交到GitHub

时间:2021-02-13 07:03:03
【文件属性】:
文件名称:ghstack:在命令行上将堆叠的差异提交到GitHub
文件大小:112KB
文件格式:ZIP
更新时间:2021-02-13 07:03:03
Python ghstack 方便地将diff堆栈作为单独的拉取请求提交到GitHub。 pip3 install ghstack 仅适用于Python 3.6和更高版本。 如何使用 在master上准备一系列提交,然后运行ghstack 。 该工具将为堆栈中的每个提交推送并创建提取请求。 如何在现有PR之上堆叠另一个PR? 假设您已经从现有PR中签出了最新的提交,只需git commit在最上面git commit一个新提交,然后运行ghstack 。 如何修改公关? 只需编辑有问题的提交,然后再次运行ghstack 。 如果提交位于堆栈的顶部,则可以使用git commit --amend编辑它。 否则,您将不得不使用git rebase -i直接编辑提交。 我该如何变基? 显而易见的方法: git rebase origin/master 。 不要做git merge ; 如果这样做,
【文件预览】:
ghstack-master
----notes.txt(975B)
----poetry.lock(41KB)
----.gitignore(66B)
----pyproject.toml(836B)
----MANIFEST.in(38B)
----test_expecttest.py(3KB)
----yaks.txt(332B)
----smoketest_cache.py(142B)
----LICENSE(1KB)
----detailed-mypy.ini(588B)
----.github()
--------workflows()
----README.md(6KB)
----pytest.ini(37B)
----ghstack()
--------rage.py(4KB)
--------forensics.py(4KB)
--------typed_dict.py(351B)
--------github_schema.graphql(234KB)
--------github_fake.py(12KB)
--------__init__.py(136B)
--------expecttest.py(7KB)
--------checkout.py(1KB)
--------circleci_real.py(3KB)
--------typing.py(852B)
--------action.py(1KB)
--------github_real.py(5KB)
--------diff.py(4KB)
--------cache.py(2KB)
--------unlink.py(3KB)
--------config.py(6KB)
--------py.typed(0B)
--------logging.py(6KB)
--------submit.py(41KB)
--------github_utils.py(1021B)
--------github.py(2KB)
--------status.py(4KB)
--------__main__.py(6KB)
--------land.py(3KB)
--------shell.py(11KB)
--------circleci.py(1024B)
--------git.py(3KB)
----emitter.py(956B)
----test_shell.py(3KB)
----.flake8(811B)
----run_tests.sh(283B)
----test_ghstack.py(52KB)

网友评论