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

Re: File missing from git branch

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 1, 2025, 16:53 UTC
Message-ID
<xmqq1pxmxyoo.fsf@gitster.g>
In-Reply-To
<1964163554.5326830.1735643984559@mail.yahoo.com>
Prasad Pandit <pjp@fedoraproject.org> writes:
> * Generally committed local changes are visible across local
> branches, right? Is there a way to see/access those locally added
> files across local branches?
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.

Until you decide to consolidate the change you made on branch A into branch B, that is. People call that operation "merging branch A to branch B".

Previous: Prasad PanditNext: Prasad Pandit
Message 2 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.