PULL COMMAND TO UPDATE MASTER IN VISUAL STUDIO

In this Blog, we will discuss about “How to update your Master Branch in visual studio”. This can be accomplished using pull command. Before that, we need to understand why we need to update the local Master branch to that of remote Master branch which is git Repo. In a project, multiple people works on the same module and hence we need to update local Master branch so that all changes which are done by developers are updated in your local Master branch . Therefore, when you check-in your changes…

PUSH LOCAL CHANGES IN VISUAL STUDIO TO GIT

In this Blog, we will do some changes in the “test” Branch (which we have shown in my previous blog “Create local branch in VS“) and push those changes to git Repository. Suppose you have done some changes in the code developed using Visual Sudio . Here, I am changing one file(README.txt). Below is the content of the file before and after changes. As soon you save the changes , you will see that changes in “Git Changes” Section. Now, you need to select those files , Right click and…

CREATE LOCAL BRANCH IN VISUAL STUDIO

In this Blog, I am going to explain about “How to create a new branch in VS and how you can push that branch in visual studio to git. In my previous Blog, I have mentioned about Cloning the repository in visual studio. You can see that Blog as well. Below are the steps needs to be followed in order to create New Branch and push that Branch to git .1. Open the VS and Login with your credentials.2. Go to Master branch(Assuming Clone Repo is already Done).Below is the…

Clone git Repository in Visual Studio

In my previous blogs on GIT, I have explained How to clone git repository using GIT GUI. In this , I will explain How to Clone the git repository in VS(Visual Studio). For an ETL developer, Visual studio is also an effective tool for developing SSIS (SQL Server Integration Services) Packages/Projects. In order to clone the git repository in visual studio, you should have an account in VS or if you do not have one, create it. Once you have created the account. Follow the below steps to clone the…

Create tag in git using Git GUI

Today, I will discuss about “Tag Creation in git”. There are two ways of doing it . One is through git repository itself and another is through local repository. In my today’s blog, I will discuss about the latter one. Before we start on this topic, we need to understand why we need to create a tag . Assume, we have a release today and developers might be working on the code which may or may not be part of this release. Hence, we need to coordinate with the team…

Restore to the previous version of a file in git

In my preceding blog, I have explained regarding “How to see all versions of a file in git”. Now, I will elaborate about “How to go back to previous version of a particular file. Here, we will consider the same example of “README.txt” file as it has 4 versions in the “sub-branch”. First see the below image which depicts all versions of that file. Now, I will go back to the original version of the file which is version-1 with the help of below mentioned steps. STEP 1 : Get…

Check all versions of a file

Today, I will explain about “how to check all versions of a file in a particular branch” using Git GUI. Go to Repository->Visualize “branch name” History. In my repository, I have a branch named “sub–branch”. See the below image for the same.Lets discuss about README.txt file which we have changed 3 times . See the below image for the same. File was first uploaded into git on 27th May 2017. Then edited thrice in the same month but year 2020. These are the versions of the file (README.txt). Click on…

Switch to another branch in local Repository

In order to understand this concept, I have created another branch in the git repository by the name of “sub-branch”. See the below image for the same. Now, rest of the activity is explained through series of steps. STEP 1 : Open Git GUI. Go to Remote->Fetch From->origin. See the below SS for the same. As you can see, new branch is fetched to our local. STEP 2 : Now, we have to create a name for this branch in my local Repository. Go to Branch->CreateAs you can see, I…

Pull the git changes to local repository using Git GUI

Until now, I have explained about “How to clone the git repository into your local Machine” and “how to push the local changes to git repository”. Today, I will explain about “how to pull the git changes into your local repository” as it is very important to first pull the changes into your local, then start doing the changes in your local repository. If not, then you will face severe issues while committing your changes into git. Consider an example where in 10 employees mapped to a project and all…

Push the local changes to git using Git GUI

In my preceding blog, I have explained about the “How to Clone git repository into your local Machine”. Now, i will describe on “How to push changes done in local repository to git repository using Git GUI”. Below are the steps to achieve the same.STEP 1 : I added one file to my local Repository which is “R-sample-1.r”. Go to Commit->Rescan. It will refresh the local repository changes in git GUI. See the below image for the same. STEP 2 : Go to Commit and Click on “Stage to Commit”.…