EGIT branches local vs Remote tracking

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

I have a question about branches where I see two sections “Local” and “Remote Tracking”. If I have to work on one of the branches, I think there are two ways I can accomplish it.

  • How do I get git to stop changing newlines in my files?
  • How can you unstash changes using EGit?
  • Git: “Error: refusing to create funny ref 'HEAD' remotely” for initial push
  • Does EGit mandate installing JGit?
  • How do I continue development once my pull has been applied, without using the pull request
  • How to get src folder under project-root folder in github when staging from eclipse using egit
  • a) Check out origin/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?

    Are there any difference between these two approaches? which one is preferred?

  • Can not recognize java command when using git bash
  • How to prevent Unity 3D's library to keep rebuilding itself with external version control?
  • How do you support 'go get' using bitbucket server?
  • TortoiseGit / Winforms: Resolving Resource.resx When Merging
  • How can you unstash changes using EGit?
  • Pushing Squashed subtree change to gerrit
  • One Solution collect form web for “EGIT branches local vs Remote tracking”

    b) would be best.
    a) would create a DETACHED HEAD, which would allow you to work on an “anonymous” branch, but would not allow you to push your work.
    (See also “Git Tip of the Week: Detached Heads” and “detached head explained” for more on detached head)

    For EGit, see “Git Lesson: Be mindful of a detached head”:

    example of an Egit detached head

    Git Baby is a git and github fan, let's start git clone.