In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 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: 0
*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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.