why config folder is not pushed?

前端 未结 3 1618
悲&欢浪女
悲&欢浪女 2021-01-28 04:23

Although I am sure that I\'ve added& committed ALL files and folders into my local git repo before push

I don\'t know why the remote repo is missing the config folde

3条回答
  •  悲哀的现实
    2021-01-28 04:52

    There are a limited number of places git looks for ignored files. Let's check all of them (paraphrased from man gitignore):

    1.   Patterns read from the command line for those commands that support them.
    
    2.   Patterns read from a .gitignore file in the same directory as the path, or in any parent directory, with patterns in the higher level files (up to
         the toplevel of the work tree) being overridden by those in lower level files down to the directory containing the file. These patterns match
         relative to the location of the .gitignore file. A project normally includes such .gitignore files in its repository, containing patterns for files
         generated as part of the project build.
    
    3.   Patterns read from $GIT_DIR/info/exclude.
    
    4.   Patterns read from the file specified by the configuration variable core.excludesfile.
    

    It's not 1. You're using porcelain commands that don't support CLI excludes. It could still be 2 based on your current edits. What is in ~/.gitignore, and issue find ~/RubymineProjects/dcaclab -name ".gitignore" to confirm you've got no other ones lurking. To test 3, issue cat ~/RubymineProjects/dcaclab/.git/exclude. To test 4, issue git config core.excludefile and git config --global core.excludefile and edit in the output.

提交回复
热议问题