git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [New to the mailing list] Searching for help

From
POPhilip Oakley <philipoakley@talktalk.net>
Date
Mar 21, 2019, 15:59 UTC
Message-ID
<11e78b8b-77f5-af1c-c362-1ca7aa8585dc@talktalk.net>
In-Reply-To
<7EF15309FAA2EA4FAB1643CB55D93ED8DBD411@SUN-DAG3.synchrotron-soleil.fr>
Hi Alex
On 21/03/2019 14:11, MARIE Alexandre wrote:
Show 15 quoted lines
> Hello,
>
> I am searching for help as I made two mistakes, I think.
> First I fetched origin in a 'branch' called temp that is in a 'detached head' state.
> But I can't delete temp by checking out master.
> I don't know how to get rid of this temp detached head.
>
> Second, the detached head causes one issue :
>
> It splits my commits in two, I mean that all the new commits I do are on top of temp detached head but they are not linked.
> I can't get through these two issues with google, I don't know why.
>
> Cheers,
>
> Alex

This list is for the development of Git. There is a googlegroups list for git users. However..

A detached head simply means that you are looking at a specific commit ((hash number)), rather than the 'latest commit on the branch'.

You did not say which OS you were on, or if you prefer the command line, or a visual  gui to see the current arrangement of your commits - the 'gitk' viewer is useful for the latter.

If you have already made some commits on the 'detached head' then use the 'git branch' command, or 'git checkout -b' to create a branch name for your new commits (check the manual). Having named the new commits, you can get back to link the bits together. You can use 'cherry-pick' to pick of individual commits from that new branch onto the new destination, or use rebase if there is a series.

Philip
Previous: MARIE AlexandreNext: MARIE Alexandre
Message 2 of 3 in “[New to the mailing list] Searching for help”
  1. MARIE AlexandreMar 21, 2019
  2. Philip OakleyMar 21, 2019
  3. MARIE AlexandreMar 21, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.