Truemag

  • Home
  • Angular JS
  • C Sharp
  • DevOps




How to remove untracked files in Git?

How to undo changes in Git?

What is git bash?

How to clone a branch in git?

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.

git clone all branches

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.

git clone specific branch

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.

Difference between git fetch vs git pull

git-fecth-vs-git-pull


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 Vs Docker

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 principles used for software development

agile-principles

Agile is a modern day way for delivering your software. These 12 agile principles are followed in the agile methodology:

  • Deliver values faster
  • Welcome change
  • Deliver working software frequently
  • Sustainable Development
  • Face to face Conversations
  • Work together daily
  • Working software is the key
  • Attention to technical excellence
  • Reflect and Adjust
  • Self organizing teams
  • Simplicity
  • Build Projects around motivated individuals

Deliver Values Faster

The faster we deliver

Docker Compose Tutorials : Install docker compose

docker-compose

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.

Prerequisites for installing docker compose is as given below:

  • First, Docker desktop for Windows or MacOs must be installed on the workstation.
  • Second, To install docker on linux, you need to download the version compatible with your flavor of Linux OS.
  • Third, Root level permissions to install docker compose.

Docker compose can be used by following the below steps:

  1. We need to define the application environment variables in a Dockerfile.
  2. Define all the services in the docker compose file(docker-compose.yml).
  3. Run the docker compose file using the command docker-compose up 

Sample docker compose file

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. 

What is mulesoft devops?

Table of Contents

MuleSoft is an integration platform which helps in integration with Apis(Application programming Interface), SOA(System oriented architecture), Saas(Software as a service) .

MuleSoft Architecture from MuleSoft Website

By implementing Devops with Mulesoft, there will be benefits like:

  • Increases speed to Market
  • Enables the production of high quality products
  • Reduces the cost of development
  • Serves as competitive advantage for your company

MuleSoft with Devops:

  • Mulesoft is very easy to integrate with CI/CD pipeline and it is very easy to use.
  • It helps in understanding the errors or the problems with in the API Lifecycle before it even exists.

Build Tools :

  • Maven – Build tool used to building java based applications.
  • Gradle – Java based compiler for building java applications.
  • Visual Studio – It is a code editor provided by microsoft.

Testing tools :

  • Munit – It is a mule test framework for testing the Apis
  • SoapUi – It is used for testing the soap based applications.
  • Nunit – It is a framework for writing unit test cases for the Mulesoft framework.

Deployment tools:

  • Artifactory -It is used for storing the binaries or the artifacts of the application. It is one of the package management tool provided by Nexus.
  • Ansible – Ansible is a provisioning and deployment tool.
  • Puppet – Puppet is a very powerful deployment tool written in yaml language.

Devops Certification

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:

  • Exam AZ-200: Microsoft Azure Developer Core Solutions
  • Exam AZ-201: Microsoft Azure Developer Advanced Solutions
  • Exam AZ-400: Microsoft Azure DevOps Solutions

Aws Cewrtifications:

  • Certified Cloud Practitioner
  • Certified Solutions Architects Associate
  • Certified Developer Associate
  • Certified Sysops Admin Associate
  • Certified Devops Engineer Professional
Page 2 of 5«12345»

Sign up for our newsletter to receive the latest news and event postings.

Recent Posts
  • Case Statement in Azure DevOps
  • How to solve file not found error in Linux?
  • How to delete local branch in git?
  • What is the git command to move branch pointer to different commit without checkout ?
  • What command tracks the revisions in git ?
Recent Comments
  • How to change directory in git bash? - Prashant's Blog on How to delete local branch in git?
  • eebest8 on How to use Http Post in Angular 4

  • Case Statement in Azure DevOps
  • How to solve file not found error in Linux?
  • How to delete local branch in git?
  • What is the git command to move branch pointer to different commit without checkout ?
  • What command tracks the revisions in git ?
  • Home
  • Angular JS
  • C Sharp
  • DevOps
  • June 2020
  • April 2020
  • February 2020
  • July 2019
  • June 2019
  • May 2019
  • January 2019
  • November 2018
  • October 2018
  • September 2018
  • July 2018
  • March 2018
  • February 2018
2018 © Prashant's Blog