The files added in .gitignore are not ignored



  • Because I use it. TypeScriptI don't need js files, WebPack, I'm throwing js'ki in another project where they continue to work successfully. But... Visual Studio 2015 also compils ts in js. He's also sending files with an expansion of the map, which I'm very hard on.
    All my ts'ki and all my files are in the scripts file.

    Here are the lines from the "gitignore" file:

     /Scripts/*.js
     /Scripts/*.map
     /Scripts/*/*.js
     /Scripts/*/*.map
    


  • I think there's a problem with relative ways. Example of use:

    # игнорировать все файлы в каталоге scripts/
    scripts/
    # игнорировать scripts/some.js, но не scripts/jquery/some.js
    scripts/*.js
    # игнорировать все .js файлы в каталоге scripts/
    scripts/**/*.js
    

    The file itself. .gitignoremust therefore lie at the root.

    More information on the reference: https://git-scm.com/book/ru/v1/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B-Git-%D0%97%D0%B0%D0%BF%D0%B8%D1%81%D1%8C-%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D0%B8%D0%B9-%D0%B2-%D1%80%D0%B5%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D0%B9#%D0%98%D0%B3%D0%BD%D0%BE%D1%80%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-%D1%84%D0%B0%D0%B9%D0%BB%D0%BE%D0%B2




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2