1

Given structure as in forking workflow (sorry - cannot post image), let's enumerate them for clarity as:
V, B, G (Violet, Blue, Green), and L, R (Local, Remote). Analogously, D for developer.
Green developer (GD) has cloned remote blue repository (RB) into RG and RG into LG (local GD workstation).

Two questions come to my mind.

  1. First concerns overview with, for example gitg/gitk.
    Sometimes, it is required to "peek into" other developer's repository. Let's say that we, VD, want to look into RG owned by GD. There are two options: either create new clone of RG on our workstation, or add new remote to our LV (git remote add RG test_rg). Assume that we need to see both repositories LV and RG, and we follow second choice. However there is slight inconvenience with this: if repository is big and/or convoluted - fetch might be quite long, and overview difficult - which is why VD, removes remote repository (git remote delete test_rg), to have clear vision of own RV/LV. Is there better alternative, as adding/removing RG as it takes some time to fetch each time (git does not cache remote refs)? I'm thinking about something like having both 'origin' and 'upstream' and 'other_origin' but be able to toggle visibility of last one.

  2. Second question might probably relate to "publish-branch", mentioned by Felipe Contreras in blog post.
    Following this workflow, VD obviously wants to have most current master branch from RB locally in LV. However, this leads to situation where his RV is left behind, with older master, unless we push new master to RV after pulling changes from RG or ssh to RV server and pull from there. While this is not required, VD might think this a) is good at least for better data security (backup). However, other take on this matter is b) to actually remove all branches from RV that are duplicated in RB, to preserve clear repository overview. Besides two above choices, are there any other concerns one should think of, regarding whether to update RV to reflect RB?

JustMe
  • 710
  • 4
  • 16
  • For 1, what about saving different views in gitk? Open gitk -> View -> New View. You can either use the tickboxes (you could save one view for "All (local) branches" and a different one for both that and "All remote-tracking branches") or manually list all branches that should be shown. (Unluckily, full names must be given, so if you want to see origin without upstream, you have to manually list all /remotes/origin/ branches.) Also note the "Simple history" tickbox in the bottom third of the view definition window - it shows just the tip of each branch, together with their branching structure. – Ansa211 Aug 23 '17 at 19:18
  • Wow, that's quite dated question. I had to focus for a while to figure out what I meant but yeah I got there eventually: "how to unclutter gitg/gitk view with LOTS of remote/local branches/tags" and yes, for that views might be some alternative. – JustMe Nov 10 '17 at 17:53

0 Answers0