【文件属性】:
文件名称:git-clear-local:Shell脚本,用于清除删除已合并到另一个给定分支中的所有本地分支
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-08 21:41:51
git utility shell-script branch clear
清除合并在本地分支机构中
shell脚本gitcloc用于清除/删除已合并到另一个给定分支中的所有本地分支。
设置
首先,您将必须下载脚本并授予文件执行权限。
$ curl https://raw.githubusercontent.com/rudikershaw/git-clear-local/master/gitcloc.sh > gitcloc.sh
$ chmod u+x gitcloc.sh
现在,您可以通过使用脚本的完整路径来执行脚本。 另外,您可能想通过在.bashrc (Linux)或.bash_profile (Mac)文件的末尾添加alias gitcloc /path/to/your/gitcloc.sh来设置别名。
用法
以下是gitcloc --help的输出
usage: gitcloc branch [--help]
Clear/delete local
【文件预览】:
git-clear-local-master
----gitcloc.sh(2KB)
----LICENSE(1KB)
----README.md(2KB)