How to git fetch by branch creator from stash

蓝咒 提交于 2019-12-08 18:25:31
VonC

By default, the refspec associated to an upstream repo is

[remote "origin"]
    url = https://github.com/schacon/simplegit-progit
    fetch = +refs/heads/*:refs/remotes/origin/*

That is why you are getting many remote tracking branches.

You can modify/add new refspecs for the fetch, as seen in "Can I specify in .git/config to fetch multiple refspecs?".

If you have a naming convention which allows you to determine what are the branches you have created, you can use a pattern to fetch only those.

But you cannot fetch based on the "creator" of a branch, since Git doesn't record who created a branch.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!