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.
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,java -version
git --version
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.