Git uses the. gitignore setting to solve the problem that does not take effect or does not take effect. git. gitignore

Source: Internet
Author: User

Git uses the. gitignore setting to solve the problem that does not take effect or does not take effect. git. gitignore

The occasional problems are recorded as follows:

When we push a project, some configuration files or local files do not want to be uploaded to the server.

At this time, we will set the. gitignore File

It is generally set as follows:

###################*. Com *. txt *. class *. dll *. exe *. 7z *. gz *. iso *. jar *. rar *. tar *. zip *. log *. SQL *. sqlite *. pyc *. excude *. bakconfig. *. idea. DS_Store * ehthumbs.dbThumbs.dbconfig.pysetting.pytest.htmlbak.html untitled. idea

Have you noticed that config. * config. py is already defined?

The cause is that you want to screen all files starting with config.

However, the config. py file was uploaded as usual. At first, I thought it was a wildcard character error, but I wrote a direct file name.

Or not, change config. py to upload it.

It looks like the. gitignore setting does not take effect or does not take effect (you cannot drop the screen content)

Very troublesome.

I searched the internet and found more than one person who encountered this problem. I used this command to clear the cache and the. gitignore modification settings will take effect ..

Git rm-r -- cached.

The solution to the above git usage. gitignore setting does not take effect or does not take effect is to share all the content with you. I hope you can give us a reference and hope you can provide more support for the customer's house.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.