Git Learning (12)

Source: Internet
Author: User

Part I: How do I use GitHub to participate in an open source project?

For example, the highly popular Bootstrap project, which is a very powerful CSS framework, you can access its Project home page https://github.com/twbs/bootstrap, point "Fork" in its own account under the cloning of a bootstrap warehouse , and then, from your account, clone to Local:

git clone git@github.com:NIck-Meng/bootstrap.git

修改bootstrap的bug或增加功能,完后往自己仓库推送,要是希望官方库接受你的修噶,可以在github发起一个pull request,但是对方接不接受就不一定了。
第二部分:自定义Git
有些git目录下的文件不需要提交,可以在git工作区的根目录下创建一个特殊的.gitignore文件,把要忽略的文件名填进去,git就会自动忽略这些文件。
忽略文件的原则是:
1,忽略操作系统自动生成的文件,如缩略图等
2,忽略编译产生的中间文件,可执行文件等,
3,忽略带有敏感信息的配置文件,如存放密码的配置文件
在windows下,使用文本编辑器,保存或另存为即可生成.gitignore文件。

Git Learning (12)

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.