Re: File missing from git branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 2, 2025 at 2:11 AM Prasad Pandit <pjp@xxxxxxxxxxxxxxxxx> wrote:
> * Generally committed local changes are visible across _new_ branches created from the local branch, right?

The answer here is both no and yes. [1]

Your issue here lies in a misunderstanding of how Git (mis?)uses
the word "branch".

 ** branches **

In some other version control system, a branch is a very real,
concrete thing.  Creating a branch makes something permanent.
New commits, once made, are on *that* branch, and those commits
are *only* that branch.

Git is different.  A branch is -- depending on your point of
view -- simply a *temporary name* for *one particular commit*.

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux