【问题标题】:How to get all branches from git remote repository for a specific user如何从 git 远程存储库中获取特定用户的所有分支
【发布时间】:2018-10-02 09:38:47
【问题描述】:

我需要从 git 远程服务器(原点)获取我所有的分支(我创建的那个),然后删除它们。

【问题讨论】:

  • “你的”分支是什么意思?一个 git 分支被分配给一个特定的提交,而不是一个用户。
  • 我创建然后留下的

标签: git get grep gitlab pull


【解决方案1】:

我找到了如何表示我曾经在远程服务器上创建的所有分支的方法。 列出所有具有特定用户名的远程分支:

git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' |排序 -k5n -k2M -k3n -k4n | grep 用户名

【讨论】:

    猜你喜欢
    • 2013-09-24
    • 2011-02-02
    • 2020-11-23
    • 1970-01-01
    • 2014-09-15
    • 1970-01-01
    • 2020-03-16
    相关资源
    最近更新 更多