hcopperm/git_utilities

语言: Shell

git: https://github.com/hcopperm/git_utilities

README.md (中文)

git_utilities

安装

git clone git@github.com:hcopperm/git_utilities.git

您可能还必须这样做:

brew upgrade hub

如果将其添加到路径中,则可以从任何目录运行make_pr.sh

用法

脚本make_pr.sh在vi中打开一个pull请求模板,当编辑和关闭该文件时,它会调用hub pull-request,将刚编辑的模板传递给--file标志。

# you can pass two arguments
./make_pr.sh -h ${feature_branch} -b ${master_branch}
# if you just pass the feature branch name
# it will make pull request against master_newui
./make_pr.sh -h ${feature_branch}
# if you don't pass any arguments
# it will make a PR for the branch you are currently on
# against master_newui
./make_pr.sh
# pass -H for help
./make_pr.sh -H
>> Usage...

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

git_utilities

Installation

git clone git@github.com:hcopperm/git_utilities.git

You might also have to do this:

brew upgrade hub

If you add it to your path then you can run make_pr.sh from any directory

Usage

The script make_pr.sh opens a pull request template in vi, and when that file is edited and closed, it calls hub pull-request, passing the template you just edited to the --file flag.

# you can pass two arguments
./make_pr.sh -h ${feature_branch} -b ${master_branch}
# if you just pass the feature branch name
# it will make pull request against master_newui
./make_pr.sh -h ${feature_branch}
# if you don't pass any arguments
# it will make a PR for the branch you are currently on
# against master_newui
./make_pr.sh
# pass -H for help
./make_pr.sh -H
>> Usage...