Monday, March 10, 2014

Fork or clone a repository in Gist or Github




GitHub is a web-based hosting service using
 the Git revision control system
https://github.com/

Gist is a simple way to share snippets and pastes with others
https://gist.github.com/

For the following examples, first sign in my Github account

Example 1   fork  Gist repository in other users:
Go to the  gist I want to fork, example
 https://gist.github.com/jrmoran/3938567
at right top, click  fork
Now it is cloned to my account
https://gist.github.com/jiansenlu/9443876
Now in gist, click user name still in gist. Switch back to Github,
click github  at the top right menu,
now back to github, click use name, now you can see you gitnub repository, not gist,
 https://github.com/jiansenlu

Example 2:  fork a github (not gist) repository, for example
https://github.com/segmentio/metalsmith
click fork at right top, then it will be shown in my github (in gist)
https://github.com/jiansenlu/metalsmith
Note: it is shown  under repositories, not contribution
Video: Fork or clone a repository in Gist or Github

No comments:

Post a Comment