Tag archives: git

RSS feed of git

Article / Entry section

Last update on .

Image credit: craftsmany.com 14-Jun-2017 Use SSH with SSH keys
Image credit: craftsmany.com 14-Jun-2017 Use SSH with SSH keys

Recently I added two-factor authentication to my GitLab account. Doing this caused some issues with some of my local existing repositories that required me to get familiar with SSH keys. This article covers what I learned.

Recently I added two-factor authentication to my GitLab account. Doing this caused some issues with some of my local existing repositories that required me to get familiar with SSH keys. This article covers what I learned.

Last update on .

What is the difference between a Fork and a Clone of a GitHub repository? Having never really understood the difference between forking a repository and cloning one, I decided to do some research and here is what I have determined.

What is the difference between a Fork and a Clone of a GitHub repository? Having never really understood the difference between forking a repository and cloning one, I decided to do some research and here is what I have determined.

Last update on .

Git is an open source version control system which allows you to create a history of changes that you can refer to when needed.

Git is an open source version control system which allows you to create a history of changes that you can refer to when needed.

Terminology section

A Git repository is a collection of data related to a particular project. It is made up of files that are committed to branches and references to those commitments.


Git push updates the remote repository with any commits made in the local branch. Example code:

git push 'remote-branch-name' 'local-branch-name'


Git pull updates the local branch with updates from its remote counterpart. This command is particularly useful when working with teams as you can update your local code with any changes that have been made/accepted on the remote branch. Example code:

git pull remote branch name local branch name


Git merge combines two branches together. The git merge command is powerful in that it can recognize and mark any conflicts that it finds so they can be corrected manually.


Git status shows the status of changes in the current working tree. The status of a file may be untracked, modified, or staged. (Only staged changes will be committed by the git commit command.)


A Git commit is a snapshot of changes on the current working branch. The commit tracks the changes that were staged and has a message that allows the developer to describe the changes made in that particular commit. A branch can contain many commits. Example code:

git commit -m 'Change background to blue'


A Git branch is a line of development in the repository. Branches are used to isolate working on different features, versions or environments. The main branch is called the master branch and is where all other branches merge into.