Github Push Drop Pit record

Source: Internet
Author: User
Github push drop pit record GitHub push drop Pit record: problem: When using GitHub push Realmdemo, push several times and always fail. Returns everything to date. Possible causes: 1, client and server configuration error.
With GitHub being used every day, there is little chance of error. In addition, we experimented with the push of other local libraries and succeeded. Veto this reason. 2. Problem with local library
Enter the project directory, where a few directories are required, and a third-party library is configured using Cocoapods. It seems to be no problem. It suddenly occurred to me that there were hundreds of files to push at each push, which seemed wrong. Go to Folder view, not so much ah. Where did the hundreds of come from then? The only thing that is unclear is the Realmswift library referenced by the project. View size, days, a few 10 trillion. You're crazy. No wonder this thing will fail to push. FIX: Using. Gitignore to configure git, ignoring the two library files, is too big. One-time push succeeds. Good. Gitignore usage: When a file or folder in your project directory needs to be ignore, you can use ignore to resolve it.
Create a. gitignore file in the directory, and configure the files or folders that need to be ignore. Ignore file format: 1, with "#" is the beginning of the note 2, filename//ignore the filename of this file name 3, *.txt//Ignore all TXT file 4,!filename//filename file name files can not ignore 5, documents///Ignore All files under Documents folder. This is the:-) I want.

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.