/build/static/layout/Breadcrumb_cap_w.png

How to exclude all the files except files starting with a name in the Git or GitHub

In the GIT project, I have many .sql files in it related to different databases.
Is there anyway I can exclude all the files except the files starting with "Hive_" in my Git Project.
Is there anyway to do so in .gitignore file.

Through .gitignore I can exclude the files list.

But the current requirement is reverse here, I want to exclude everything except files starting with specific characters.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: ur00361883 7 years ago
Black Belt
1
Here is the answer:

https://devopsdiaryblog.wordpress.com/2017/07/05/how-to-exclude-all-the-files-except-files-starting-with-a-name-in-the-git-or-github/

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ