The #1 Thing People Get Wrong About How to Install Git in AWS Ec2

Earlier I have explained how to configure Jenkins on Amazon Ec2 Instance & in this post we'll learn how to install Git on Amazon Ec2 instance. For that what you have to do is follow my instructions carefully.


Prerequisites software's to install Git

👉  Register @ https://github.com
👉  Install git bash @ https://git-scm.com/downloads


1.  Register with GitHub and create an account. Not sure how to do it and if you want help how to setup please leave a comment.

2. Download and install git bash for windows and do not change default configurations while installing unless if you are expert

We are done with Git account creation and git bash installation on windows machine. Next step what we are going to do is 

3. Next steps we are gonna login to AWS account with login username and password & if you don't have an account with AWS create one and login. 

4. Create AWS Ec2 instance and start instance. 


Note:

Multiple machines are available while creating/choosing Amazon instance and you need to choose the right one based on your requirement otherwise you are dealing with wrong instance. 

For more help how to create & start your Amazon Ec2 instance click here

5. If Amazon Ec2 is up and running try to connect your Ec2 instance using Git Bash from file explorer.

Note:

You must open git bash from file explorer where .pem file is available & if not open you are unable to connect Amazon Ec2 instance. See below snapshot for more details,



6. Check if the JDK available or installed in your Amazon Ec2 instance using below command & if not available download and install java with this video guide
java -version

7. Check if the Git available or installed in your Amazon Ec2 instance using below command & if not available download and install java with this Git tutorial
git --version

Now you have successfully installed Git on your Amazon Linux instance and you are ready to work with. 


Conclusion!

In this article we've learned how to create GitHub account, how to install git bash for windows, how to install Java on Amazon instance and how to install Git on Amazon Linux instance. You are always welcome to comment if you like this article.

Chandra Sekhar

A Blogger and Author! This post was written and edited by me, a technologist. I started this site to share my inspirations, work, and free materials, which I hope others may find useful as well. Man with a creative streak who enjoys experimenting with various web design strategies.

Previous Post Next Post

Microservice Communication in a Distributed System