I have remote with special fetchspec
[remote "devall"]
url = https://BNahum90789@dcilpa670/scm/devops/dev4all.git
fetch = +refs/heads/dev/BNahum90789_2/*:refs/remotes/dev_BNahum90789/*
Now I push to remote:
git push -u devall my:dev/BNahum90789_2/my_on_remote
So my remote tracking branch looks like this:
git rev-parse --symbolic-full-name dev_BNahum90789/my_on_remote
refs/remotes/dev_BNahum90789/my_on_remote
Given this remote tracking branch 'refs/remotes/dev_BNahum90789/my_on_remote' how can I find name of remote and branch on remote ?? (Please note, it doesn't contains remote name nor local tracking branch !!!)
(The only way I can think on, is to go over all fetch-specs of all remotes and find which one does match)
Thanks Boaz