Thursday 22 June 2017

Learning Notes of Github Essentials

Cited from the Book "Github Essentials"

git config [--global] user.email "email"
git config [--global] user.name "username"
git log
git show

The Raw, Blame and History Buttons
The Raw button, like the name suggests, opens the fle in a raw form, meaning that any HTML formatting disappears.

The Blame button makes use of Git's blame function. Basically, for each line of a fle, Git informs you about who modifed that line and when that line was modifed.
git blame filename

The History button is nothing more than Git's log function for a particular file.

The Watch, Star and Fork Buttons
The Watch button manages the level of subscription in a repository. GitHub notifies you with an e-mail whenever an action takes place in a repository you follow and, at the same time, lists them in the notifications area where you can later mark them as read. (https://github.com/notifications)

The Star button is a way to show your appreciation to a repository and its creator. It depicts the popularity of a project. Whenever you star a repository, it gets added to the list of your starred ones. You can see all your starred repositories at https://github.com/stars.

The main use of Fork button is when one wants to contribute to a project. When you fork a repository, it gets copied in your own namespace and that way you have full ownership in that copy; thus, you are able to modify anything you want.

Markdown is a text-to-HTML conversion tool, so that you can write text that contains structural information and then automatically get converted to valid HTML.









No comments:

Post a Comment