You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often will get fatal: no upstream configured for branch 'feat/foo' when running gacp. This is easily solved locally as I have an alias and function to solve that:
alias gpsup='git push --set-upstream origin $(git_current_branch)'
git_current_branch () {
local ref
ref=$(__git_prompt_git symbolic-ref --quiet HEAD 2> /dev/null)
local ret=$?
if [[ $ret != 0 ]]
then
[[ $ret == 128 ]] && return
ref=$(__git_prompt_git rev-parse --short HEAD 2> /dev/null) || return
fi
echo ${ref#refs/heads/}
}
It would be nice if I could tell gacp to do that for me.
maybe something like --set-upstream origin and in .gacprc it would look like:
{
"setUpstream": "origin"
}
The text was updated successfully, but these errors were encountered:
I often will get
fatal: no upstream configured for branch 'feat/foo'
when runninggacp
. This is easily solved locally as I have an alias and function to solve that:It would be nice if I could tell
gacp
to do that for me.maybe something like
--set-upstream origin
and in.gacprc
it would look like:The text was updated successfully, but these errors were encountered: