Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8240489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:30:26+00:00 2026-06-07T20:30:26+00:00

I started using Git a few months ago and I wanted a GUI client

  • 0

I started using Git a few months ago and I wanted a GUI client so I am using SmartGit, which I find great.

The only thing is I get very confused when I try to go back to a previous committ; for instance recently I discovered a bug which had gone undetected in my project. I used branch>>checkout in SmartGit to change to an earlier version. This worked fine however SmartGit recommended that I should switch to a local branch to check out the committ. I have a few questions (see below) about this but my main problem is that when I read up on the documentaion for each they seem to be saying slightly different things. Git’s documentation appears to say that “checkout” is for

Checking out a branch or paths to the working tree

whereas smartgit says that you use checkout to

switch the working tree to a certain commit.

  • So are they two different things (ie different uses of the word checkout) and if not why does one refer to branch and the other to commit?
  • How does it work if I want to move to an earlier commit in the same branch?
  • Why does smartgit recommend that I start a new branch for this, and is it important?
  • If I must set up a new branch every time then should I set up a special branch for this so that I don’t end up with a lot of random branches?
  • What is the signifignance of “local” in the local branch sugesstion, why would it have to be local, does this mean that it should not be synced with my bitbucket account?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T20:30:28+00:00Added an answer on June 7, 2026 at 8:30 pm

    No

    I don’t use smartgit but these descriptions are equivalent.

    Branch confusion

    A branch in git is just a pointer to a commit. So when you checkout a branch, you’re updating your working copy to a specific commit (it just has a nice name like "master").

    If you want to checkout a commit (it doesn’t matter at all where in your repo history it is) – you can just check it out by hash. If you are only checking it out to look around, no it’s not necessary to create a new branch. Depending on what you’re doing however, it might be a good idea to do so. You can do that before or after checking out a commit – to git at least – it doesn’t matter.

    If you do things with git’s cli you’ll see something like this:

    (master) $ git checkout c5d12604219ac1d6fa0f7d8ff4be98c8a3eee0da
    Note: checking out 'c5d12604219ac1d6fa0f7d8ff4be98c8a3eee0da'.
    
    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.
    
    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:
    
      git checkout -b new_branch_name
    
    HEAD is now at c5d1260... Added CakeResponse::file() for serving files as response
    ((no branch))]$
    

    I.e. git will also prompt you, with an example command, to optionally create a branch for the commit you’ve checked out and explain why (to retain commits you create).

    Local branches

    A local branch just means a branch that exists in your local working copy (it appears in .git/config, it shows up when you do git branch). A local branch may or may not have an upstream remote branch (may or may not have something to push to) – that’s your choice and doesn’t affect whether the branch is local or not – it’s defined in your repo, therefore it is local.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I started using Git a few days ago. ( Very late to the
I just started using Git and Github 2 weeks ago, and I wonder if
I've just started using git and while it is relatively easy to find out
I have just started using git. Rebase is great stuff. I should have used
I've recently started using Git and am having trouble with just one thing. How
I have started using the Android StrictMode and find that it would be great
I've just started using Git and find that whilst I am implementing a feature
I've just started using git-ftp, which allows me to push my commit to an
I've just started using Git and it's possible I've missed something obvious, but here
I just started using git with github. I followed their instructions and ran into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.