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

Re: Ask for feature on git

From
LTLoredana Tralli <loredana.tralli@gmail.com>
Date
Sep 4, 2024, 13:59 UTC
Message-ID
<CAEO06GKzQTfm9z8ODCAYdHsWwgfHau0kuFA7WFkVqkPHbsm_1g@mail.gmail.com>
In-Reply-To
<20240903170438.nhcnojx6upsxsj6d@carbon>

Hello, Thank you both for your answers.

I was wondering if exists a bash/cli command to find out from with branch a created the new branch. Usually we can see it with graph or something like in this answers https://stackoverflow.com/questions/1057564/pretty-git-branch-graphs, nand I'd like to know if there is a command through bash to check directly "you created branch test from branch release".

Thanks in advance for your help, Regards

Loredana Tralli

Il giorno mar 3 set 2024 alle ore 19:04 Konstantin Khomoutov <kostix@bswap.ru> ha scritto:

Show 16 quoted lines
>
> On 9/3/24 17:18, Loredana Tralli wrote:
>
> > Is it possible to have a git command to find out which is the parent branch?
>
> Please try to specify what you consider to be a "parent branch" in your
> workflow. The problem is that there are multiple things in Git which may match
> what you are asking for. Even better would be to try to explain your original
> problem you're struggling with - which made you want the feature being
> discussed.
>
> Still, please consider that in Git, commits do not belong to any
> branch: each commit has metadata but that metadata do not record the name of
> the branch (if any!) which was checked out at the time the commit was created
> (on someone's computer).
>
Previous: Konstantin KhomoutovNext: Konstantin Khomoutov
Message 4 of 5 in “Ask for feature on git”
  1. Loredana TralliSep 3, 2024
  2. Simon RichterSep 3, 2024
  3. Konstantin KhomoutovSep 3, 2024
  4. Loredana TralliSep 4, 2024
  5. Konstantin KhomoutovSep 4, 2024

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.