Git is a freely available open source system for distributed version control. It is fast, scalable and system version control (tweaking log) files. As we know in the programming world, when writing hundreds of codes, frequent changes always occur. And these changes can be monitored and reversed with the help of the GIT; other files may be made available to others through “repositories” or changes may be obtained from others. If necessary, settings from publicly accessible repositories (repos) can be imported into a “working copy” or you can make your own settings available to others. This gives the programmer better control over each version of the files, complete history and control of changes made. All this without any central server. It’s open source, so Git is also often used as a development platform, including for the Linux kernel.
. Connect to Ec2 instance
There are two easy ways to connect to the Ec2 instance running Linux, one is using the web console and the other via SSH from your local system’s command prompt or terminal. . For Web Terminal
. Perform system update
sudo update yum sudo yum install git
. Check Git Version
Once the installation is complete, let’s check the version of Git available on our system. git version
Let’s set up a local repository for Git
Create a directory mkdir firstgit Access the created directory mygit cd / Now, initialize the local git repository git init You can see the content ls -a .git / To have git status, the command is: git status To list all git commands and subcommands git help -a Get help for a specific command git help