Julien Cubizolles <
j.cubi...@free.fr> writes:
> I'm not sure I'm using the origin/upstream concepts how they should be
> used. I've forked a github repository to add some custom changes, set
> origin (at first push) to the fork in my personal github repo and set
> upstream (through b u) to the repo I forked (zenorocha in the following
> example).
>
> Now whenever I commit to origin, magit-status indicates that I have some
> unpushed commits to upstream. I thought the purpose of the upstream
> branch was (at least in case of a fork) to give a default remote branch
> for fetching, but that it would not be used for pushing: that's what the
> origin branch is for. In my case I have no intention to push to the
> upstream branch, nor do I have write access to it.
Right. In this setup, you can think of "Unpushed" as "Unmerged".
(IIRC, renaming this section to match this workflow was suggested
recently and may still be under consideration.)
> Is there some variable in magit to prevent it from reminding me that I
> have unpushed commits to the upstream remote branch ?
If you don't find the information useful, you can remove
magit-insert-unpushed-to-upstream from magit-status-sections-hook.
--
Kyle