Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use github

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to use github", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use github" this article.

Github

Git is a good code management method that supports branch management, which can solve the problem of cooperation between teams. Each engineer develops on his or her own local branch and merges everyone's code after completing the function.

Mascot

Name: Octocat.

Origin

It first emerged from the Rails development community, and Github itself was written in the RoR framework.

The early Rails multi-person collaborative development team encountered a lot of trouble in code submission and collaboration.

After the completion of this project, many programmers found that the tool is not only easy to use, but also has a very friendly user interface, easy to use and operate. So Scott and several others simply set up a website called "Github" to provide similar services.

Founder: 5-person backbone group.

Scott Chacon:GithubGit evangelist, Pro Git author, etc. In addition, it regularly participates in various meetings and activities, including providing Git training for enterprises worldwide.

Melissa Severini: administration.

Kyle Neath: design.

Company experience

2011.10.26:Github open source Camfire robot Hubot.

2012.2.28:YC incubator Coderwall aggregates your projects on sites such as Github to create "technology business cards" that belong to Geek.

2012.5.22: get Andreessen Horowitz investment, US $100m investment, valuation up to 800m.

2012.10.6: launch a separate teaching page to teach collaborative programming through the network and face-to-face entity model.

2013.2.1: the Oscar "Crunchies 2012" Best start-up Company in the venture capital world.

2013.2.16: release the Boxen suite to help you back up and deploy new computers with one click.

January 10, 2014: acquire Easel, a Web-based page design tool.

Customer

KPI: the number of registered users exceeded 4 million and the number of managed projects exceeded 8 million.

Business model: Freemium model. Free users can host project code, but can only use public repositories. Paying users can host private libraries on Github.

Basic functions of Github

Repository

It is divided into public warehouse and private warehouse. The repository contains all: version, branch, tag information.

Explore

Discover, view, and study code projects hosted in public repositories on Github.

Gist

There is a version-controlled code pasting service so that text or code can be easily shared.

Blog

Personal blog, as long as you submit a Commit to Github, you can publish new articles.

Watch

Add the interested warehouse to the follow-up list and dynamically notify the warehouse if there are any updates.

Star

An updated way to manage the records of the warehouse you are interested in, and any previously previewed warehouse can be found on its page.

Fork

One of the most important functions is to clone other people's warehouse code into your own project. Can be used as a sub-module, or secondary development.

Top 10 Github projects (according to Star number)

Bootstrap:The most popular front-end framework for developing responsive, mobile first projects on the web,66640

Jquery:JavaScript Library,30328

Node:evented I/O for v8 javascript,28908

Html5-boilerplate:A professional front-end template for building fast, robust, and adaptable web apps or sites,24871

D3:A JavaScript visualization library for HTML and SVG,24483

Angular.js: http://angularjs.org ,22589

Font-Awesome: The iconic font designed for Bootstrap,22060

Rails:Ruby on Rails,21436

Impress.js:It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com,19852

Backbone:Give your JS App some Backbone with Models, Views, Collections, and Events,17611

Homebrew:The missing package manager for OS X,16755

We have been using GitHub as a free remote repository, and if it is a personal open source project, it will be no problem to put it on GitHub. In fact, GitHub is also an open source collaborative community, through GitHub, you can not only let others participate in your open source projects, but also participate in other people's open source projects.

Before the emergence of GitHub, open source projects were easy to open source, but it was difficult to allow the broad masses of people to participate, because to participate, it was necessary to submit the code, and it was unrealistic to open an account for everyone who wanted to submit the code, so the masses were limited to applying for a bug, and even if they could change the bug, they could only send the diff file by email, which was very inconvenient.

But on GitHub, with the extremely powerful cloning and branching capabilities of Git, the broad masses of people can really freely participate in various open source projects for the first time.

How to participate in an open source project? For example, the very popular bootstrap project, which is a very powerful CSS framework, you can visit its project home page https://github.com/twbs/bootstrap, click "Fork" to clone a bootstrap repository under your account, and then clone from your account:

Git clone git@github.com:michaelliao/bootstrap.git

Be sure to download the clone warehouse from your account so that you can push changes. If you clone from the warehouse address of the author of bootstrap, git@github.com:twbs/bootstrap.git, you will not be able to push changes because you do not have permission.

The relationship between Bootstrap's official warehouse twbs/bootstrap, the warehouse my/bootstrap that you cloned on GitHub, and the warehouse you cloned to your local computer looks like the following figure:

If you want to fix a bug in bootstrap or add a new feature, you can start work immediately and push it to your own warehouse when you are done.

If you want bootstrap's official library to accept your changes, you can launch a pull request on GitHub. Of course, it is uncertain whether the other party will accept your pull request or not.

The above is all the content of this article "how to use github". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report