Add git. gitignore files to the project it's a sudden interest.

Source: Internet
Author: User

The head is big, but finally found very simple.

The operation is as follows:

1.touch. Gitignore then in the. gitignore file to set the file to be ignored, reference click to open the link, really do not know to go to the GitHub on the clone of someone else's project to see what others have overlooked, according to gourd painting ladle.

2. Since all the files were uploaded to the project, the automatically generated files will be uploaded each time, at this time. gitignore file does not work, you need to put the original file with git--cached file name to move, if you want to remove the folder, then use git--cached-r file The clip name loops through all the files in the folder.

3. Perform git add-a.

Git commit

Git push Origin XXXX

OK Complete

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.