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

Re: File missing from git branch

From
PPPrasad Pandit <pjp@fedoraproject.org>
Date
Jan 2, 2025, 10:11 UTC
Message-ID
<2075804114.5670956.1735812672910@mail.yahoo.com>
In-Reply-To
<xmqq1pxmxyoo.fsf@gitster.g>
On Wednesday 1 January, 2025 at 10:24:08 pm IST, Junio C Hamano <gitster@pobox.com> wrote: 
Show 8 quoted lines
>> * Generally committed local changes are visible across local branches, right?
>
>Not at all.
>
>In fact, the contents on branch A is unmolested by the act of
>committing changes on branch B.  They are independent lines of
>development.  Otherwise your version control system is broken.
>
* Sorry, my question was wrong. Let's say
    day-0:
      - Fork is created
    day-1:
      - upstream commits pulled into 'main' branch
      - new files are committed into 'main' branch
    day-2:
      - upstream commits pulled into 'main' branch 
      - 'new-branch-1' created from 'main' branch
    day-3:
      - upstream commits pulled into 'main' branch
      - 'new-branch-2' created from 'main' branch
    ...
    day-n
      - upstream commits pulled into 'main' branch
      - 'new-branch-n' created from 'main' branch
* Generally committed local changes are visible across _new_ branches created from the local branch, right? ie. 'new-branch-1', 'new-branch-2', 'new-branch-n' all created from the 'main' branch, should have the files which were committed into 'main' branch on day-1, right? That is not happening.
Thank you.
---
  -Prasad
Previous: Junio C HamanoNext: Chris Torek
Message 3 of 5 in “File missing from git branch”
  1. Prasad PanditDec 31, 2024
  2. Junio C HamanoJan 1, 2025
  3. Prasad PanditJan 2, 2025
  4. Chris TorekJan 2, 2025
  5. Prasad PanditJan 3, 2025

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.