gnu tar's `tar --exclude-vcs-ignores` does not work with whitelist .gitignore“tar --exclude-backups” does...

What is the oldest instrument ever?

How can I test a shell script in a "safe environment" to avoid harm to my computer?

Do these creatures from the Tomb of Annihilation campaign speak Common?

What are these pads?

Can I bring back Planetary Romance as a genre?

Would the rotation of the starfield from a ring station be too disorienting?

Are wands in any sort of book going to be too much like Harry Potter?

Expl3 and recent xparse on overleaf: No expl3 loader detected

Why is there a cap on 401k contributions?

While drilling into kitchen wall, hit a wire - any advice?

Crime rates in a post-scarcity economy

My perfect evil overlord plan... or is it?

I'm attempting to understand my 401k match and how much I need to contribute to maximize the match

Program for finding longest run of zeros from a list of 100 random integers which are either 0 or 1

How can one see if an address is multisig?

GLM: Modelling proportional data - account for variation in total sample size

99 coins into the sacks

Why is it wrong to *implement* myself a known, published, widely believed to be secure crypto algorithm?

How do I give a darkroom course without negatives from the attendees?

Two (probably) equal real numbers which are not proved to be equal?

My parents are Afghan

Exactly which act of bravery are Luke and Han awarded a medal for?

Magical Modulo Squares

Capturing the entire webpage with WebExecute's CaptureImage



gnu tar's `tar --exclude-vcs-ignores` does not work with whitelist .gitignore


“tar --exclude-backups” does not exclude files with tilde at endWhy does my tar not work?Exclude subdirectory of included directory with tartar is not obeying --exclude-vcsTar --absolute-names flag does not workExclude some files when extracting with tarWhy --exclude of tar doesn't workGNU tar with --exclude-cache fails to exclude directories containing a CACHEDIR.TAG filetar --exclude '*/logs' doesn't workRecursively exclude directory with pattern using tar






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















tar (GNU tar) 1.29 if the .gitignore looks like this:



*.bak
*.log


It can work properly.



However, if we first ignore all then include some of the pattern:



# ignore everything recursively
#*
#but not dirs
#!*/
#white list following
#!.gitignore
#!*.pdf


It ends up an empty folder in tar ball.
Any idea why? bugs?










share|improve this question





























    0















    tar (GNU tar) 1.29 if the .gitignore looks like this:



    *.bak
    *.log


    It can work properly.



    However, if we first ignore all then include some of the pattern:



    # ignore everything recursively
    #*
    #but not dirs
    #!*/
    #white list following
    #!.gitignore
    #!*.pdf


    It ends up an empty folder in tar ball.
    Any idea why? bugs?










    share|improve this question

























      0












      0








      0








      tar (GNU tar) 1.29 if the .gitignore looks like this:



      *.bak
      *.log


      It can work properly.



      However, if we first ignore all then include some of the pattern:



      # ignore everything recursively
      #*
      #but not dirs
      #!*/
      #white list following
      #!.gitignore
      #!*.pdf


      It ends up an empty folder in tar ball.
      Any idea why? bugs?










      share|improve this question














      tar (GNU tar) 1.29 if the .gitignore looks like this:



      *.bak
      *.log


      It can work properly.



      However, if we first ignore all then include some of the pattern:



      # ignore everything recursively
      #*
      #but not dirs
      #!*/
      #white list following
      #!.gitignore
      #!*.pdf


      It ends up an empty folder in tar ball.
      Any idea why? bugs?







      tar






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      WangWang

      281414




      281414






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f517677%2fgnu-tars-tar-exclude-vcs-ignores-does-not-work-with-whitelist-gitignore%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f517677%2fgnu-tars-tar-exclude-vcs-ignores-does-not-work-with-whitelist-gitignore%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...