Unkown filename appears on hierarachical while commiting

I do not understand one file which is not on git repository & not on local repository (not even local & physical folder) but while i am going to commiting or push it seems in files hierarachical? By unchecking this file i am able push & pull code properly but i am curious to find what is the exact issue.

enter image description here

  • How can I get write access for a deployment key on bitbucket or something like that?
  • Can I issue git rev-parse on remote repository without a local copy?
  • fatal: could not unset 'branch.master.remote'
  • Jenkins git submodule update fails
  • How to push .txt.gz file to git
  • Android Studio push tags to remote
  • git fatal error fatal: unable to read blob object 724b6f6b35fd871a84ab1742099de2c3671d7899
  • Can I make git add -p show changes like git diff --word-diff?
  • GitLab v5.0 git push problems
  • git svn clone fails on Mac OS X: “Temp file with moniker 'svn_delta' already in use”
  • Creating a custom SMS/MMS app in Android - using Eclipse and GitHub - why so many unresolveds?
  • issue with rhc setup and openshift
  • 3 Solutions collect form web for “Unkown filename appears on hierarachical while commiting”

    .DS_Store is a hidden file, which is created by MacOS to store the information about the containing folder. You should add this file to your .gitignore, so the git will never display it in your untracked/modified list.

    According to wikipedia:

    In the Apple macOS operating system, .DS_Store is a file that stores
    custom attributes of its containing folder, such as the position of
    icons or the choice of a background image. The name is an
    abbreviation of Desktop Services Store, reflecting its purpose. It
    is created and maintained by the Finder application in every folder

    It seems you have changed filename EditOrNewAddressVuewController.m to EditOrNewAddressVuewController~.mthat is saved this info in .DS_Store & you pushed code to remote thereafter this because that .DS_Store info there is untracked file appears on you Git working tree hierarchy,

    If you don’t like this untracked file,delete .DS_Store add .gitignore file. Helpful link1, link2,link3

    Even if, there is one silly way for avoiding to watch this,Clone project in another folder 😉

    .DS_Store is MacOS system file that will appear in each directory for default HFS+ filesystem. Your Finder most likely is not dispaying hidden files (with dot prefix). You can setup .gitignore not to include .DS_Store, details here

    Git Baby is a git and github fan, let's start git clone.