File show as modified after git clone and this file not exist












2















I have tried git checkout -- . many times but it seems not to do anything.

And i use all from this question



git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: File.ini

no changes added to commit (use "git add" and/or "git commit -a")

ls -al:
-rw-r--r-- 1 user staff 867 15 nov 00:52 File_1.ini
-rw-r--r-- 1 user staff 399 15 nov 00:52 File_2.ini
-rw-r--r-- 1 user staff 900 15 nov 00:52 File_3.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini

git config --list --show-origin:
file:.git/config core.repositoryformatversion=0
file:.git/config core.autoclrf=false
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config core.ignorecase=true
file:.git/config core.precomposeunicode=true
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master









share|improve this question

























  • What's your operating system? Are you on a shared drive of some type? Have you changed any git configuration? What's the output of git output --list --show-origin?

    – Edward Thomson
    Nov 14 '18 at 23:23











  • git reset —hard would remove all uncommitted changes

    – 0andriy
    Nov 14 '18 at 23:24











  • after git reset --hard git status say "modified: file.ini" again reset --hard "modified: File.ini"

    – Vitaliy Smolinskiy
    Nov 14 '18 at 23:26













  • @EdwardThomson macos, no git configurations changed. git output --list --show-origin :: git: 'output' is not a git command.

    – Vitaliy Smolinskiy
    Nov 14 '18 at 23:32











  • Sorry; I meant git config --list --show-origin. (Apologies.)

    – Edward Thomson
    Nov 14 '18 at 23:34
















2















I have tried git checkout -- . many times but it seems not to do anything.

And i use all from this question



git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: File.ini

no changes added to commit (use "git add" and/or "git commit -a")

ls -al:
-rw-r--r-- 1 user staff 867 15 nov 00:52 File_1.ini
-rw-r--r-- 1 user staff 399 15 nov 00:52 File_2.ini
-rw-r--r-- 1 user staff 900 15 nov 00:52 File_3.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini

git config --list --show-origin:
file:.git/config core.repositoryformatversion=0
file:.git/config core.autoclrf=false
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config core.ignorecase=true
file:.git/config core.precomposeunicode=true
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master









share|improve this question

























  • What's your operating system? Are you on a shared drive of some type? Have you changed any git configuration? What's the output of git output --list --show-origin?

    – Edward Thomson
    Nov 14 '18 at 23:23











  • git reset —hard would remove all uncommitted changes

    – 0andriy
    Nov 14 '18 at 23:24











  • after git reset --hard git status say "modified: file.ini" again reset --hard "modified: File.ini"

    – Vitaliy Smolinskiy
    Nov 14 '18 at 23:26













  • @EdwardThomson macos, no git configurations changed. git output --list --show-origin :: git: 'output' is not a git command.

    – Vitaliy Smolinskiy
    Nov 14 '18 at 23:32











  • Sorry; I meant git config --list --show-origin. (Apologies.)

    – Edward Thomson
    Nov 14 '18 at 23:34














2












2








2


1






I have tried git checkout -- . many times but it seems not to do anything.

And i use all from this question



git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: File.ini

no changes added to commit (use "git add" and/or "git commit -a")

ls -al:
-rw-r--r-- 1 user staff 867 15 nov 00:52 File_1.ini
-rw-r--r-- 1 user staff 399 15 nov 00:52 File_2.ini
-rw-r--r-- 1 user staff 900 15 nov 00:52 File_3.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini

git config --list --show-origin:
file:.git/config core.repositoryformatversion=0
file:.git/config core.autoclrf=false
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config core.ignorecase=true
file:.git/config core.precomposeunicode=true
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master









share|improve this question
















I have tried git checkout -- . many times but it seems not to do anything.

And i use all from this question



git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: File.ini

no changes added to commit (use "git add" and/or "git commit -a")

ls -al:
-rw-r--r-- 1 user staff 867 15 nov 00:52 File_1.ini
-rw-r--r-- 1 user staff 399 15 nov 00:52 File_2.ini
-rw-r--r-- 1 user staff 900 15 nov 00:52 File_3.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini

git config --list --show-origin:
file:.git/config core.repositoryformatversion=0
file:.git/config core.autoclrf=false
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config core.ignorecase=true
file:.git/config core.precomposeunicode=true
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master






git






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 7:13









FreshD

1,27221224




1,27221224










asked Nov 14 '18 at 23:21









Vitaliy SmolinskiyVitaliy Smolinskiy

134




134













  • What's your operating system? Are you on a shared drive of some type? Have you changed any git configuration? What's the output of git output --list --show-origin?

    – Edward Thomson
    Nov 14 '18 at 23:23











  • git reset —hard would remove all uncommitted changes

    – 0andriy
    Nov 14 '18 at 23:24











  • after git reset --hard git status say "modified: file.ini" again reset --hard "modified: File.ini"

    – Vitaliy Smolinskiy
    Nov 14 '18 at 23:26













  • @EdwardThomson macos, no git configurations changed. git output --list --show-origin :: git: 'output' is not a git command.

    – Vitaliy Smolinskiy
    Nov 14 '18 at 23:32











  • Sorry; I meant git config --list --show-origin. (Apologies.)

    – Edward Thomson
    Nov 14 '18 at 23:34



















  • What's your operating system? Are you on a shared drive of some type? Have you changed any git configuration? What's the output of git output --list --show-origin?

    – Edward Thomson
    Nov 14 '18 at 23:23











  • git reset —hard would remove all uncommitted changes

    – 0andriy
    Nov 14 '18 at 23:24











  • after git reset --hard git status say "modified: file.ini" again reset --hard "modified: File.ini"

    – Vitaliy Smolinskiy
    Nov 14 '18 at 23:26













  • @EdwardThomson macos, no git configurations changed. git output --list --show-origin :: git: 'output' is not a git command.

    – Vitaliy Smolinskiy
    Nov 14 '18 at 23:32











  • Sorry; I meant git config --list --show-origin. (Apologies.)

    – Edward Thomson
    Nov 14 '18 at 23:34

















What's your operating system? Are you on a shared drive of some type? Have you changed any git configuration? What's the output of git output --list --show-origin?

– Edward Thomson
Nov 14 '18 at 23:23





What's your operating system? Are you on a shared drive of some type? Have you changed any git configuration? What's the output of git output --list --show-origin?

– Edward Thomson
Nov 14 '18 at 23:23













git reset —hard would remove all uncommitted changes

– 0andriy
Nov 14 '18 at 23:24





git reset —hard would remove all uncommitted changes

– 0andriy
Nov 14 '18 at 23:24













after git reset --hard git status say "modified: file.ini" again reset --hard "modified: File.ini"

– Vitaliy Smolinskiy
Nov 14 '18 at 23:26







after git reset --hard git status say "modified: file.ini" again reset --hard "modified: File.ini"

– Vitaliy Smolinskiy
Nov 14 '18 at 23:26















@EdwardThomson macos, no git configurations changed. git output --list --show-origin :: git: 'output' is not a git command.

– Vitaliy Smolinskiy
Nov 14 '18 at 23:32





@EdwardThomson macos, no git configurations changed. git output --list --show-origin :: git: 'output' is not a git command.

– Vitaliy Smolinskiy
Nov 14 '18 at 23:32













Sorry; I meant git config --list --show-origin. (Apologies.)

– Edward Thomson
Nov 14 '18 at 23:34





Sorry; I meant git config --list --show-origin. (Apologies.)

– Edward Thomson
Nov 14 '18 at 23:34












1 Answer
1






active

oldest

votes


















1















modified:   File.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini



That looks like a case issue: File.ini vs. file.ini



One way would be for your MacOs volume disk to be "Mac OS Extended (Case-sensitive, Journaled)" in "Format".



Another would be git config core.ignorecase false, or git mv file.ini File.ini






share|improve this answer
























  • Thank you. But this command git config core.ignorecase false doesn't work and mv is the last i do. I'll try first way maybe helps.

    – Vitaliy Smolinskiy
    Nov 15 '18 at 20:58











  • Thanks! Create volume disk with Case-sensitive, Journaled helped me!

    – Vitaliy Smolinskiy
    Nov 15 '18 at 23:03













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310243%2ffile-show-as-modified-after-git-clone-and-this-file-not-exist%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1















modified:   File.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini



That looks like a case issue: File.ini vs. file.ini



One way would be for your MacOs volume disk to be "Mac OS Extended (Case-sensitive, Journaled)" in "Format".



Another would be git config core.ignorecase false, or git mv file.ini File.ini






share|improve this answer
























  • Thank you. But this command git config core.ignorecase false doesn't work and mv is the last i do. I'll try first way maybe helps.

    – Vitaliy Smolinskiy
    Nov 15 '18 at 20:58











  • Thanks! Create volume disk with Case-sensitive, Journaled helped me!

    – Vitaliy Smolinskiy
    Nov 15 '18 at 23:03


















1















modified:   File.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini



That looks like a case issue: File.ini vs. file.ini



One way would be for your MacOs volume disk to be "Mac OS Extended (Case-sensitive, Journaled)" in "Format".



Another would be git config core.ignorecase false, or git mv file.ini File.ini






share|improve this answer
























  • Thank you. But this command git config core.ignorecase false doesn't work and mv is the last i do. I'll try first way maybe helps.

    – Vitaliy Smolinskiy
    Nov 15 '18 at 20:58











  • Thanks! Create volume disk with Case-sensitive, Journaled helped me!

    – Vitaliy Smolinskiy
    Nov 15 '18 at 23:03
















1












1








1








modified:   File.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini



That looks like a case issue: File.ini vs. file.ini



One way would be for your MacOs volume disk to be "Mac OS Extended (Case-sensitive, Journaled)" in "Format".



Another would be git config core.ignorecase false, or git mv file.ini File.ini






share|improve this answer














modified:   File.ini
-rw-r--r-- 1 user staff 168 15 nov 01:00 file.ini



That looks like a case issue: File.ini vs. file.ini



One way would be for your MacOs volume disk to be "Mac OS Extended (Case-sensitive, Journaled)" in "Format".



Another would be git config core.ignorecase false, or git mv file.ini File.ini







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 15 '18 at 5:49









VonCVonC

843k29426723226




843k29426723226













  • Thank you. But this command git config core.ignorecase false doesn't work and mv is the last i do. I'll try first way maybe helps.

    – Vitaliy Smolinskiy
    Nov 15 '18 at 20:58











  • Thanks! Create volume disk with Case-sensitive, Journaled helped me!

    – Vitaliy Smolinskiy
    Nov 15 '18 at 23:03





















  • Thank you. But this command git config core.ignorecase false doesn't work and mv is the last i do. I'll try first way maybe helps.

    – Vitaliy Smolinskiy
    Nov 15 '18 at 20:58











  • Thanks! Create volume disk with Case-sensitive, Journaled helped me!

    – Vitaliy Smolinskiy
    Nov 15 '18 at 23:03



















Thank you. But this command git config core.ignorecase false doesn't work and mv is the last i do. I'll try first way maybe helps.

– Vitaliy Smolinskiy
Nov 15 '18 at 20:58





Thank you. But this command git config core.ignorecase false doesn't work and mv is the last i do. I'll try first way maybe helps.

– Vitaliy Smolinskiy
Nov 15 '18 at 20:58













Thanks! Create volume disk with Case-sensitive, Journaled helped me!

– Vitaliy Smolinskiy
Nov 15 '18 at 23:03







Thanks! Create volume disk with Case-sensitive, Journaled helped me!

– Vitaliy Smolinskiy
Nov 15 '18 at 23:03






















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310243%2ffile-show-as-modified-after-git-clone-and-this-file-not-exist%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine