Home » Software Development » Git (page 4)

Git

Git Clone Branch Example

1. Introduction In my previous posts about Git, most of the contents are focusing on local repository operation. So in most of the time, you only need to deal with your local repository and operate on it. However, you may not only be involving in local or self operation on you code. You may cooperate with others to work on ...

Read More »

Create Git Repo Example

1. Introduction Git coming back again:) This time I’ll introduce how to create Git repository(repo for short). In my previous post on Git Tutorial for Beginners, I’ve explained some basic Git operations/commands, which briefly includes how to create Git repo. In this article, we’ll go to the process step by step and see how to create Git repository from 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 »

How does Git work? Git Tutorial for Beginners

1. Introduction Version Control Systems are one of the software tools that help developers manage the source code over time. They keep track of the modification, compared with different versions of the source code. As the number of lines increases, it could go up to thousands and thousands lines. In real life, it could be a disaster if we make ...

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 »

Git Undo Commit Example

1. Introduction Every human being may make mistakes, especially the Software developers:) When we’re writing code, it’s a process of how we’re thinking and how we solve specific problems. In real life, it could be a disaster if we make some irrecoverable mistakes. However, this will not happen in writing code for the developers, especially with the help of Git. In ...

Read More »

Git Diff Example

1. Introduction As we all know, Git has been a very popular source code management system for software development. It has been widely used among programmers. Compared with SVN (Apache Subversion) and CVS (Concurrent Version System), Git is more powerful for its distributed nature, fast operation and branch handling mechanism. Because of the efficient of Git, Github, which is the ...

Read More »

Git Remove Commit Example

In this example, we shall show how to remove commits from our git’s log history. As we can see, we can commit every time we want because these commits will persist in our local machine and nobody can access to them if push have not been performed to the git central repository. Commit every change is really good but what ...

Read More »

Git Undo Merge Example

In the previous example, we have talked about Git Merge Conflict Example. Merge process sometimes can be automatized or can required human interaction and when this happens, few times, problems come around. In this topic, we shall cover about how to unmerge a branch taking advantage of Git’s power. What exactly is undo merge? Well, if merge is the process ...

Read More »