How to clone a branch in git is one of the very first steps that you can do when working with the Repository. Git is a Microsoft product. When ever we want to work with our application code in git, we have to clone the repository into our laptop or desktop.
So, for using git commands we need to first download git software depending on your operating system on your laptop or server. You can get the latest version of git from Git website here https://git-scm.com/. Once you have downloaded the git software and installed it on your laptop or server. Then, you should be able to git bash commands on your server.
So, Once when you have installed Git onto your laptop or server, then you will need to run some initial commands:
$ git config --global user.name "Your name"
$git config --global user.email your@name.com
Once you have completed the execution of the above commands we are good to run the git clone command. Now, we are going to see how we can clone all the branches from the Repository.
Also how we can clone a single or a specific branch from repository onto your laptop or server.
So, when you want to clone all the branches into your laptop or server you can use the below command.
$git clone repositoryurl
The output of the above command would be that it would download or clone all the branches of the repository into the current working directory with the name of the repository.
Now, lets see how we can clone a single branch or specific branch from the repository. To clone a specific branch or single branch of the repository we use the –single-branch option with –branch option in the git bash command line.
$git clone --branch development --single-branch repositorybranchfolder
So, if you see in the above command we have provided the branch that we want to clone i.e. development and we can downloading the application code into a specific folder on the laptop or desktop.
GIT is a Version Control System or VCS that is used to track the changes or the modifications that have been made to the source code. Git helps developers coders to collaborate or share their source code with other developers/stakeholders.
One of the best features of GIT or Version Control System is that we can roll back the changes or the modifications that we have made if something goes wrong. GIT uses repositories where we keep our source code. A repository can have multiple branches. The default branch for any repository is master.
The first step in working with git is to clone the repository to the local system or laptop where the development is being carried out. Whenever we commit any changes to the source code a new hash is being created which can be used for reverting our changes if required.
In this article, we are going to discuss git fetch vs git pull.
git fetch: git fetch is the command that we use when we want to download the latest metadata from the remote repository. There are no files downloaded or modified on the local repository. Example of using git fetch to get all the repositories is given as below:
git fetch –all
git pull: git pull command is a combination of git fetch and git merge. Whenever we execute the git pull command, we are fetching the metadata from the repository and merging the latest code changes into our local repository. We can use the git pull as given below:
git pull origin branch name
In simple words, the git fetch command will be used when we want to download the latest metadata from the origin, and the git pull command will be used when we want to pull the latest updated or modified files from the repository.
Podman is one of the new features introduced in Red Hat Enterprise Linux(RHEL 7.6) Beta.
Podman allows us to run all the docker cli commands .
The major difference between Podman and Docker is that docker runs daemons behind the scenes but there are no deamons running for Podman. It has only a single command that takes care of the Docker deployment process.
Now, lets start by installing podman on the machine. There are two things that needs to be taken care of when installing the podman.
First, you need to enable the extras repo. Extras repo can be enabled using the below command :
$ su -
subscription-manager repos --enable rhel-7-server-extras-beta-rpms
After you have enabled the extras repo you need to install the podman. So, for installing the podman you need to run the below command:
yum -y install podman
One of the benefits using podman is that we can use podman can be integrated with the system services such as systemd.
Agile is a modern day way for delivering your software. These 12 agile principles are followed in the agile methodology:
The faster we deliver
Docker compose is a tool that deploys many or multiple docker images at the same time to the Kubernetes Cluster. Docker compose can be used to deploy applications on MacOs, Windows and on Linux Servers.
version: '2.0'
services:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
- logvolume01:/var/log
links:
- redis
redis:
image: redis
volumes:
logvolume01: {}
Must Read : Docker Swarm and Kubernetes.
MuleSoft is an integration platform which helps in integration with Apis(Application programming Interface), SOA(System oriented architecture), Saas(Software as a service) .
Testing tools :
Devops is a practice of helping developers to deliver apps frequently. Devops Engineer is a person who coordinates with developers and testers and other project stack holders for the quick and faster delivery to market. There are many benefits that comes when we implement devops practice in a project. Some of the benefits are given below:
Faster Delivery to market
Frequently Releases
Improved Performance
There are many engineers who want to do certification so that they can prove their value. Below are some of the very popular certifications that a devops engineer should have:
Azure Devops Certications:
Aws Cewrtifications:
Sign up for our newsletter to receive the latest news and event postings.
Recent Comments