Is GitHub common? However, you may not know how to use GitHub. This article will share with you various tips on using GitHub.
Recommended reading:
How to create an organization on GitHub
Usage in GitHub Linux
How to build a GitHub development environment using Eclipse in Windows
Source code for R language 3.0.1 has been submitted to GitHub
Import Maven project to Eclipse4.2 from GitHub
How to become a gardener for Open Source Services on Github
Ignore spaces when diff
Some modifications only add or remove spaces. Add? W = 1 can be ignored.
View the submission history of an author
Add? In URL? Author = username, for example:
- Https://github.com/rails/rails/commits/master? Author = dhh
Compare versions
Use a URL similar to the following to compare branches:
- Https://github.com/rails/rails/compare/master...4-1-stable
You can also use the following format:
- Https://github.com/rails/rails/compare/master@{1.day.agos...master
- Https://github.com/rails/rails/compare/master@{10-0410-0...master
If you want to compare it with the derived warehouse, add the name of the derived warehouse as the prefix:
- Https://github.com/rails/rails/compare/byroot:master...master
Embed Gist in HTML Format
Gists is a Git-based code snippet Service released by GitHub. The Gists page provides JavaScript code to embed Gist into other sites. However, JavaScript pasting on many sites is invalid. In this case, you can append. pibb to the Gist URL to get a pure HTML Version, and then copy and paste the HTML source code to other websites. Example https://gist.github.com/tiimgreen/10545817.pibb
For more details, please continue to read the highlights on the next page: