Posts

Showing posts from May, 2018

Brief History of Version Control Systems, DVCS Advantages and Git Installation

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes brief history of Version control systems, Advantages of DVCS which means Distributed Version Control Systems and also we will learn about Git and it's installation on Windows. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow. This post will only introduce you to Git. So let's get started. A brief history of version control First generation The very first version control system were developed in early 70's and operated on a single file and had no networking support.These were the systems such as SCCS and RCS. They are operated on a single file so that you will have a file such as foo.c and have multiple versions of that file. But there was no correspondence between different files within the repository. There was no notion that version 1.1 ...

Git - Branching, Merging, Rebasing and Cherry-picking

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes about Branching, Merging and Rebasing with Git and also about Git stashing, Cherry-picking. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow. This post will only introduce you to Git. So let's get started. Branching, Merging and Rebasing with Git First we look at how to visualize the branches. We have already discussed about the command  git log --graph --oneline  which gives us the list of commits on the current branch using a graph on left hand side. Now we are going to add some more options to add the visualizers for our branches. git log --graph --online --all --decorate  -> all allows us to visualize all the branches rather than the current branch and decorate applies any labels to the commits such as HEAD, tags, remote branches and t...

Git - Creating, Verifying Tags and Pushing Tags to remote repository

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes about creating and verifying tags in Git and pushing the tags to the remote repository. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow.  So let's get started. Creating and Veifying tags Lets look at tagging the repository. We can tag a repository by using the below commands git tag v1.0  - v1.0 is the tag name and it is an unsigned tag. git tag  - It shows the tags that were created git tag -a v1.0_with_message  - It will annotate or message to associate with a tag. git tag -s v1.0_signed  - We can sign a tag using this command. We can also verify the tags. To verify the created tags we use the following commands. See the picture. The above picture is very clear. For the programmer there is no need to explain further i b...

Git Fetching, Pulling from Remote repository and Pushing to Remote repository

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes how to fetch from remote repository, pulling from and pushing to remote repository. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow. This post will only introduce you to Git. So let's get started. Fetching from a Remote The remote repository is automatically added when we clone a repository for example from GITHUB but if i have local repo and i want to add a remote destination to it, i can use the below command to do it. git remote add origin https://github.com/.... origin  can be anything, i had chosen some arbitrary name here. So if someone sends a pull request, you can add their public repository and then pull their changes into your working local copy to examine. So you can have multiple remotes and it is done commonly in git ino...

How to Git clone your remote repository

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes how to clone the remote repository to your local machine and try out different commands to know about the commits that were made in the repository and we also talk a bit about branches and tags. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow. This post will only introduce you to Git. So let's get started. Working remotly with Git Let's look at cloning our remote repository to our local machine. In our example i use jquery repository on github. git clone https://github.com/jquery/jquery.git This is going to download the entire history of the project, all of the commits that have been made to the jquery repo. You can use  git log  command to see the commits that have been made to the project. To see more condensed version, use  git l...

Configuring Git in your computer

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes how to configure Git in your computer. After you install Git, we can add or update several properties to Git configuration files. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow. This post will focus on Git configuration. So let's get started. Configuring Git Now the git is installed on system and we will see how we configure them. Git provides three different configuration stores. 1) System level configuration It is stored in  /etc/gitconfig  or  C:\Program Files(x86)\Git\etc\gitconfig This git configuration is applied to the entire computer that is installed on and you can access it using git config --system 2) User level configuration The second level is user level. We can access it using  git config --global . It's global ...

Working Locally with Git

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes how to create a local Git repository, adding and committing files to local repository, viewing the history of the commits, knowing the file changes made between two commits and also we discuss about Git ignore and so forth. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow. So let's get started. Working Locally with Git Creating a local repository, adding files and committing changes I have an empty directory GitFundamentals which i would like to change to local git repository. Let me explain the commands in the below image so that it would be easy to understand. git init - It creates .git directory which contains a repository and all of its metadata. I can add file to this repository by echoing "Hello, Git" to a READM...

Dynamic Configuration of Distributed Applications using Spring Cloud Netflix Project

Image
Hi, I am Malathi Boggavarapu working at Volvo Group and i live in Gothenburg, Sweden. I have been working on Java since several years and had vast experience and knowledge across various technologies. In my previous post of ' Developing MicroServices using Spring Cloud Netflix API ', we learnt how to develop MicroServices using Spring Cloud Netflix API. In this section i am going to explain how to build Spring Cloud Configuration Server and Client and the real purpose of using them. You will find all the exercise files in my GitHub account regarding my previous post ' Developing MicroServices using Spring Cloud Netflix API ' and also for this post. Clone my below GitHub project to your local machine and try out the exercise files. MalathiBoggavarapu / SpringCloud So let's get started. This tutorial describes about how we manage application configuration in distributed system like a cloud. First and foremost we will learn about the difference between man...

Learning Git and GitHub in more Practical way

Image
Hi, My name is Malathi Boggavarapu and welcome to my blog. In this section we will see how to create a local and remote repositories using Git and GitHub, Pulling the changes from remote to local repository, Pushing the changes from local to remote repository and also we will go through various Git commands which are very useful while working with the application. Prerequisites Git - Latest version First and foremost we should create a GitHub account. Please do visit github.com  and create an account. Later we need to create an SSH key and add it to your GitHub account. Generating a new SSH key SSH key is used to identify yourself with the GitHub server using public key cryptography. We can generate SSH key in many ways. There are many open source tools to do that but we do it using Git Bash . So inorder to generate SSH key, first go ahead and download latest version of Git and install it. While installing make sure that you choose the option  G...