Coder Social home page Coder Social logo

testrenamecase's Introduction

TestRenameCase

Create a repo which has both Abc.txt and abc.txt files

first commit

git config core.ignorecase false

Rename via explorer contexn meanu (not TortoiseGit)

Commit it (NOTE: Only one item in list)

Check log (NOTE: status of Abc.txt is Added, not rename)

If core.ignorecase = false in Windows...

Create test branch and checkout it

Problem here: file is not checkout, the status is Deleted

So Revert it. Then, abc.txt in working tree:

Modified the abc.txt, and commit it.

Check log:

Checkout master, but failed. (in Windows)

So, delete abc.txt file.

Then, checkout master again. the result:

Merge.

Merge is ok.

But the result(the following 2 screeshots) is not wanted.

The frist, the working tree is not clean.

Try to revert it, but show abc.txt is modified this time.

Suppose the core.ignorecase shlould be not set to false.

Back to...

Reset hard master

Confirm with browser repository

In Windows, core.ignorecase = true by default

set back

git config core.ignorecase true

Delete the files and the log

Reset hard again

Problem 1: abc.txt is checkout, but Abc.txt is not.

Problem 2: working dir changes is clean

Delete the files again.

Revert Abc.txt

The Result: (but see next step)

Press F5 to refresh:

Problem 1: still one is working tree, the other one is gone.

Problem 2: working dir changes is clean

Delete the file again. (The 3rd times)

Open Commit dialog

Uncheck wanted item and commit

Revert wanted item

Revert result

Try mrege again

Oops! conflict.

Abort Merge. (Tried some resolve method, but failed.)

Checkout test branch

Using TortoiseGit's Rename

Commit

Now, checkout master and do merge again.

Merge OK.

The story is not finish...

What if I want to keep both file?

What if one user add abc on his own branch and other one user add Abc on his own branch? (abc and Abc is a different content)

testrenamecase's People

Contributors

yuelinho avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.