[root@cicdapi opt]# yum install git java-1.8.0-openjdk -y
[root@cicdapi opt]# git –version
If it installed properly above command gives output of instlled git version
3.6. Blue print Diagram of Git flow:
First copy repository from ‘https’ protocol.
# git clone ‘repository Url’
Next move the file to staging area.
# git add README.md
Commit the moved file to local repository, while committing we must mention for what we are committing.
# git commit -m ‘Brief explanation about commit’
Final step, Push the file from local repository to remote repository like Bit bucket, Git hub, etc...,
# git push origin
To do any changes again pull the repository from remote.
3.7. Blue print Diagram of Git Branching Strategy:
Master (Main Branch): This is default branch created when you create a repository. No one should directly work on master, any code we push to master must be well tested. Only few seniors will have permissions to push to master.
Hotfix Branch: This branch is used for fixing production (where customers using servers) defects, this branch is created from master.
Release Branch: This is the branch for merging the develop1 & 2, where errors are fixed and then will sent to master.