How to setup Git in Ubuntu?

Git is a version control system that track your changes in your specific files. You can track changes, add commit on every changes, undo/redo the changes to a certain stage. It’s very useful version control system for software engineers. Writing a large software without Git can’t be imaginable. Most importantly it’s very difficult to develop a single software by multiple software engineer as a team. You need to track who is changing where and who is adding new feature. You can track all the changes made by any of your team member by implementing Git. Setup Git in Ubuntu is not hard.

Installing Git in local machine – why?

If you don’t want to use any online service like GitHub or BitBucket or any other similar service. In that case you need to install Git on your local computer or setup Git in any central computer in your network so other team member can also access Git server. So follow this tutorial to setup Git in Ubuntu or any other Linux machine and start using version control system for your project.

Setup Git in Ubuntu or any other Linux machine

Here I have prepared step by step guidelines about to setup Git in Ubuntu.

Install Git on Ubuntu or other Linux machine

  1. Install Git core in your machine

    For Ubuntu, run this sudo apt-get install git-core command to install git core. Similarly run specific command as per your linux operating system.

  2. Verify the installation

    Run which git /opt/local/bin/git to check if git has been installed correctly or not.

  3. Configure your name

    Run git config --global user.name "FIRST_NAME LAST_NAME" to set your name as a git global configuration parameter.

  4. Configure your email address

    Run git config --global user.email "MY_NAME@example.com" to set your email address as a global configuration parameter.

Now it’s done! You have completed installing Git in Ubuntu. Keep using Git by commit, push, pull. However, if you face any trouble write down that in comments for help.

Read more Git related articles

How to setup Git in Ubuntu?

Git is a version control system that track your changes in your specific files. You can track changes, add commit on every changes, undo/redo the changes to a certain stage. It’s very useful version control system for software engineers. Writing a large software without Git can’t be imaginable. Most importantly it’s very difficult to develop a single software by multiple software engineer as a team. You need to track who is changing where and who is adding new feature. You can track all the changes made by any of your team member by implementing Git. Setup Git in Ubuntu is not hard. Installing Git in local machine – why? If you don’t want to use any online service like GitHub or BitBucket or any other similar service. In that case you need to install Git on your local computer or setup Git in any central computer in your network so other team member can also access Git server. So follow this tutorial to setup Git in Ubuntu or any other Linux machine and start using version control system for your project. Setup Git in Ubuntu or any other Linux machine Here I have prepared step by step guidelines about to…

Error: You Have Not Concluded Your Merge (merge_head exists)

Git a very useful version control system. While working on Git, you should face some problem that kills you few mins to study and solve. Sometimes we got this error message (Source Tree pull You have not concluded your merge (MERGE_HEAD exists)?) while we are working with any Git command. It’s a weird issue and sometimes very dangerous. Here I have shared very short tips to overcome this problem. Why It happened? It happened because your last pull failed to merge automatically and it became conflict state. And without fixing the conflict before next pull or push, you will see this error. What’s the solutions? Hope, this will help you to solve your problem of error: you have not concluded your merge (merge_head exists). Please leave a comment for others if this solutions works or not!

What is GitHub security alert and how to activate it?

Everybody loves open source software, tools, libraries for developing software. It saves costs, provides support from that community and we can get lots of help and even we can contribute to the tools we already love. I assume you are already familiar with GitHub. But let me introduce it again. After that I will explain about GitHub security alert feature and how to activate it for your repository. What is GitHub GitHub is a platform where anybody can host source code of their software for sharing and collaborating with other developers. It’s one of the most popular software version control platforms that use Git. You can push your source code using Git, later you can pull and commit and again push to track the changes. Other people who have access (for private repository) or if your repository is public, everybody can see the changes, they can pull → make changes → commit → push to the original repository. Also people who are using that open source software can submit issue, discuss with repository contributors and other developers worldwide. It’s a fantastic community and collaboration platform for developers from all around the world. GitHub was founded on 2008 and in 2018…

Shaharia is a professional software engineer with more than 10 years of experience in the relevant fields. Digital ad certified, cloud platform architect, Big data enthusiasts, tech early adopters.