1

I want to separate each line in the branch to make it easier for me to read it. How do you change one image to make it look like Figure 2?

Image 1

Image 2

Julian
  • 33,915
  • 22
  • 119
  • 174
  • 1
    I guess the short answer is `by branching`. You create branches for different things and then you merge when needed. https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging – eftshift0 May 29 '20 at 15:31
  • 2
    Merge without fast forwarding or rebasing – evolutionxbox May 29 '20 at 15:46
  • 2
    i.e., `git merge --no-ff feature-branch`. This creates a separate merge commit, allowing you to see the tree nicely. Check out https://stackoverflow.com/questions/6701292/git-fast-forward-vs-no-fast-forward-merge/6701322 – Andrei Mustata May 29 '20 at 16:39

1 Answers1

0

The problem is: each of the remote tracking branches are part of the same history, they are direct descendant of the master branch.

So there is no "separate line" to see here, unless you create one by switching to each branch and pushing an empty artifical commit:

git switch register # creates the register branch tracking origin/register
git commit --allow-empty -m "artificial empty commit"
git push -u origin register

But again, you should not need that in your case (linear history)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250