git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Bug report: git checkout introduces local changes
@ 2021-01-13 22:32 Anthony Miles
  0 siblings, 0 replies; only message in thread
From: Anthony Miles @ 2021-01-13 22:32 UTC (permalink / raw)
  To: git@vger.kernel.org

Background: (from memory)
Branch A had a file X added to it
Branch B had a copy of the file X added to it (in a different location)
Later, Branch B was merged to branch A

Steps:
1. git checkout A
  No local changes
2. git checkout B
  File X is deleted

What did you expect to happen? (Expected behavior)
Checking out a branch should not introduce local changes

What happened instead? (Actual behavior)
Checking out branch B introduced a local change, deleting File X

Additional information:
Switching back from branch B to branch A results in no local changes

[System Info]
git version:
git version 2.29.2.windows.2
cpu: x86_64
built from commit: 3464b98ce6803c98bf8fb34390cd150d66e4a0d3
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
uname: Windows 6.1 7601
compiler info: gnuc: 10.2
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe


[Enabled Hooks]
pre-commit
pre-push


The information contained in this email and its attachments may be confidential.
If you have received this email in error, please notify the sender by return email,
delete this email and destroy any copy.

Any advice contained in this email has been prepared without taking into
account your objectives, financial situation or needs. Before acting on any
advice in this email, National Australia Bank Limited (NAB) recommends that
you consider whether it is appropriate for your circumstances.
If this email contains reference to any financial products, NAB recommends
you consider the Product Disclosure Statement (PDS) or other disclosure
document available from NAB, before making any decisions regarding any
products.

If this email contains any promotional content that you do not wish to receive,
please reply to the original sender and write "Don't email promotional
material" in the subject.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-13 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 22:32 Bug report: git checkout introduces local changes Anthony Miles

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).