Home » version control

Tag Archives: version control

How to Install Git From Source

Git is a version control system that is used for software development and other version control tasks. As a distributed revision control system it aims at speed, data integrity, and support for distributed, non-linear workflows. Unlike most client–server version control systems, every Git directory on every computer is a full-fledged repository with complete history and full version-tracking capabilities, independent of ...

Read More »

What is a Git Repository

What is a Git Repository, if needed to explained in one line it is a version control system that orks in similar fashion to other version control systems, manage a project, or a set of files, as they change over time. Git however explains itself in various self-explaining terms like everything is local, distributed is the new centralized, local branching ...

Read More »

Git Cherry Pick Example

Cherry Pick as a word seems to be very interesting, literally cherry picking in git means to choose a commit from one branch and apply it onto another. This functionality is in contrast with merge and rebase which normally applies many commits onto a another branch. In this example we shall see example usage of git cherry-pick command.     ...

Read More »

Git Delete Local Branch Example

In this example, we shall learn how to delete Git local branch. To delete a branch, it must be fully merged in its upstream branch, or in HEAD if no upstream was set. 1. A brief on Git branch A branch represents an independent line of development. These serve as an abstraction for the edit, stage, or commit process. The ...

Read More »

Git Delete Remote Branch Example

Let’s say our work with remote branch is complete, or let’s say one of the team was working on a feature which has been completed now and all the changes has already been merged into remote’s master branch. Now that we have no requirement of remote branch, we might want to delete it. In this example we shall learn the ...

Read More »

Git Push Origin Example

In this example, we shall understand git push origin command. git push command updates remote references using local references by sending objects necessary to complete the given references. In simple words, git push command updates remote repository with local commits. origin represents remote name where user wants to push the changes. Let’s understand this command in more detail.     ...

Read More »

Git Rename Branch Example

In this example we shall learn how to rename a Git branch. 1. Pre-requisites To see this example in action, Git should be installed. It can be downloaded from here. 2. Git Branch Git branches aren’t like SVN branches which most of us use. The main purpose of SVN branches is to capture large-scale development effort which is again very ...

Read More »

Git Create Branch Example

In this example we shall learn how to create a branch with Git Version Control tool. 1. Introduction to Version Control Version control is an application that records changes to a file or set of files over time so that one can recall specific versions later. One can see file change history and track changes. There are three type of ...

Read More »