EGIT branches local and remote tracking

I am new to GIT. I am using EGIT with eclipse.

I have a question about branches where I see two sections “Local” and “Remote tracking”. If I need to work on one of the branches, I think I can do this in two ways.

a) Check the source / featureBranch under remote tracking and work on it.

b) Right-click under local and create a local branch and point to ref / remote / featureBranch and start working on it?

Is there a difference between the two approaches? which one is preferable?

+4
source share
1 answer

b) it would be better.
a) will create a DETACHED HEAD , which will allow you to work in the "anonymous" branch, but will not allow you to promote your work.
(See also " Git Tip of the Week: Separate Chapters " and "

For EGit see "":

example of an Egit detached head

+7
source

Source: https://habr.com/ru/post/1382295/


All Articles