---
title: "Discussion on \"The \"detached HEAD\" state in Git: What it is and how to fix it\" | Hashnode"
description: "Discussion on \"The \"detached HEAD\" state in Git: What it is and how to fix it\". A common source of confusion when using Git is not knowing what it all means when you see an output like this:\nYou are in 'detached HEAD' state. You can look around, make \nexperimental changes and commit them, and you can discard any \ncommits you mak..."
url: "https://hashnode.com/posts/the-detached-head-state-in-git-what-it-is-and-how-to-fix-it/636b73ce36615c1cee47a10a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The "detached HEAD" state in Git: What it is and how to fix it](https://how-to.dev/the-detached-head-state-in-git-what-it-is-and-how-to-fix-it?utm_source=hashnode&utm_medium=feed)

A common source of confusion when using Git is not knowing what it all means when you see an output like this: You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you mak...

Nov 9, 2022 · 6 min read · how-to.dev  
Updated Dec 26, 2022  
Read the article

-   [#beginners](https://hashnode.com/tag/beginners)
-   [#git](https://hashnode.com/tag/git)

## Written by

[Marcin Wosinek](https://hashnode.com/@marcin-wosinek)

@marcin-wosinek · Valencia, Spain

  
[View profile](https://hashnode.com/@marcin-wosinek)

JavaScript developer

I'm JS developer with 13 years of professional experience. I'm always happy to teach my craft.

## Responses 2

Markdown supported · ⌘↵ to post

[Tara Hanson](https://hashnode.com/@tarahanson234)

[Nov 14, 2022](https://hashnode.com/posts/the-detached-head-state-in-git-what-it-is-and-how-to-fix-it/636b73ce36615c1cee47a10a/comment/6371f5e16c456c3cf2391c2c)

Nice one!

[Marcin Wosinek](https://hashnode.com/@marcin-wosinek)

[Nov 14, 2022](https://hashnode.com/posts/the-detached-head-state-in-git-what-it-is-and-how-to-fix-it/636b73ce36615c1cee47a10a/comment/6371f5e16c456c3cf2391c2c#reply-63720160a49f113eedbc33f3)

Thanks a lot!

[Robert Lee](https://hashnode.com/@robertlee)

[Nov 9, 2022](https://hashnode.com/posts/the-detached-head-state-in-git-what-it-is-and-how-to-fix-it/636b73ce36615c1cee47a10a/comment/636b9e0f4c5666f6e4c17550)

Hello, I'd like to discuss about development with you.
