In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the git. Gitignore configuration syntax is how, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
.gitignore configuration of git
The .gitignore configuration file is used to configure files that do not need to be versioned. Configuring this file can bring great convenience to our versioning. Here are some personal experiences on configuring .gitignore.
1. Configuration syntax:
Start with a slash "/" to indicate the directory
Match multiple characters with an asterisk "*"
With question mark "?" Wildcard single character
A matching list containing a single character in square brackets "[]"
With exclamation point "!" Indicates that matching files or directories are not ignored (tracked)
In addition, git matches the rules from the top to the bottom of the .rules profile, meaning that if the previous rules match more widely, the later rules will not take effect
2. Example:
(1) Rule fd1/*
Note: ignore all the contents under the directory fd1; note that both the / fd1/ directory under the root directory and a subdirectory / child/fd1/ directory will be ignored
(2) Rule: / fd1/*
Description: ignore the entire contents of the / fd1/ directory under the root directory
(3) rules:
/ *
! .gitignore
! / fw/bin/
! / fw/sf/
Description: ignore everything, but do not ignore the .gitignore file, / fw/bin/ and / fw/sf/ directories in the root directory
Thank you for reading this article carefully. I hope the article "what is the configuration grammar of gitignore in git" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 217
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.