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 4050052
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:01:19+00:00 2026-05-20T14:01:19+00:00

Accidently I got detached from my application branch: Not currently on any branch. nothing

  • 0

Accidently I got detached from my application branch:

Not currently on any branch.
nothing
to commit (working directory clean)

How can I return to the branch?

  • 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-05-20T14:01:20+00:00Added an answer on May 20, 2026 at 2:01 pm

    Try:

    git checkout master
    

    … or whatever branch you were previously on. To give some further explanation:

    One of the most common uses of git checkout is to switch from one branch to another. e.g. git checkout experiment, git checkout master. However, you can also give it the name of a tag, or the SHA1 sum (object name) of a commit – in those cases, git will change HEAD (which normally points to a branch, indicating that that’s your current branch) to point to that tag or commit. This is known as “detached HEAD” or “not being on a branch” – the main difference is that if you create commits when you’re in detached HEAD mode, they won’t advance a branch, so they’re easier to lose track of.

    However, this is a very useful thing to be able to do when you want to look at the state of your repository at some random point in the past. (e.g. jumping around in this way is often the first step of trying to find the last good commit for (the awesome) git bisect.)

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

Sidebar

Related Questions

I've got a jigsaw-type application where the user can pick up any of the
I got my application working Awhile back, but after completely and accidentally deleting it,
I was accidently using the gh-pages branch so now it has become the most
I got the following error when calling the url in Django. It's working before,
I got a old used picdem board for free from my friend and I
I've got a bucket where i've accidently uploaded thousands of files with ACL to
As stated accidently ran the org-column command and I manage to remove it from
For a system I'm working on I've got a bit of a problem: I'm
I've got some code which draws data from an xml file but it seems
Bug: I've got an ASP.NET web application that occasionally sets identical cookie keys for

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.