21 January, 2024

Git common commands:

 

Git common commands:

Setup a username for a repository

Syntax: git config --global user.name “username”

Set up user-email for your repository

Syntax: git config --global user.email useremail@example.com

Select or create the directory where you want to initialize Git

Initialize Git in the directory Syntax: git init

To add a file to the staging area Syntax: git add <filename>

▪ To check the working tree status Syntax: git status

 

 

To commit the staged files to your local repository: Syntax: git commit

Remote Repositories:

Sign-up at github.com & Click on New repository to create a new repository.

Under Repository name, give a name to your repository

▪ Give some Description about your repository under the Description section.

For a free repository, choose public.

 ▪ For a private repository, a monthly premium needs to be paid

▪ Finally, click on Create Repository.

To add Remote repository to local use git add remote followed by remote link:

Syntax: git add remote origin <remotelink>

To push Local repository to remote repository, use the push command Syntax: git push origin master

▪ The changes can be seen in the Remote repository

Files can be created and edited on remote

To list all the remotes attached to your Local repository Syntax: git remote –v




Fetch command copies the changes from remote to the local repository

Syntax: git fetch origin

▪ Fetch does not affect the present working directory

 

 

Pull copies all the changes from remote to the local repository

▪ It then merges the changes with the present working directory Syntax: git pull origin

Branches and Merge:

 

Assignment 1:

Problem Statement

Move the application code from local to Git & Git hub for better source code management.

Action Items:

•                     Create a local git repository and move the entire code base to it

•                     Create a new branch for a new feature you want to add to the application

•                     Merge back the created branch with the master branch

•                     Create a remote repository

•                     Push the local repository to company’s GitHub remote repository

Assignment 2:

Problem statement:

Two developers to implement a new set of features in their software. Both started working separately, making their own copies of the same source code. Now, it has become difficult for them to track the changes they’ve made in the original code, and they are finding it difficult to merge their code together.

Action Items

§     Create two separate branches from master

§     Make changes in the same function of the source code in both the branches

§     Merge branch1 into the master

§     Try and merge branch2 into the master (merge conflict should arise)

§     Resolve the merge conflict.

 

 

Devops Syllabus

 Pre requisites:

-          Ubuntu VM Setup

-          Introduction to Linux & Linux commands.

-          Install required software’s (Java, maven,NPM etc.,)

Overview of DevOps:

-          SDLC

-          WATERFALL MODEL & AGILE METHODOLOGIES

-          Assignment

Version Control with Git:

-          Version control system

-          Git introduction

-          Git installation

-          Commonly used commands in git

-          Working with remote repositories

-          Assignment

Continuous Integration using Jenkins:

-          Introduction to continuous integration

-          Introduction to Jenkins

-          Jenkins installation

-          Sample pipeline creations

-          Assignment

Containerization using Docker:

-          Docker installation & Docker CLI

-          Docker images & Docker file

-          Docker Registry -Docker Hub

-          Container storage & volumes

31 December, 2023

AWS VPC(Virtual private cloud)

 Hello! Generally sometimes interviewer ask about VPC, some people will tell i know the VPC and we can simply derive the abbreviation virtual private cloud but VPC concept is big concept & most important service in AWS.

We can try to understand and create the VPC in this post.


VPC

Subnets

Internet Gateway

Router

NAT Gateway

Elastic IP

Lets create VPC manually and assign subnets,security groups.




Devops

 Devops Tools:

git & git hub

docker

jenkins

quay repo

aws/openshift/kubernetes


Airflow installation setup using helm chart.

14 March, 2023

AWS Security Best Practices.

Security is the most important area need to concentrate now days. AWS also provide couple of security services to protect the organization but AWS cloud security provide Shared responsibility model.It means customer need to focus on Security in the cloud and AWS responsibility for security of the cloud.

we can start with IAM service:

Managing IAM users:

- No shared user Identity

- Individual user access

- Tightly control the IAM policies.

Managing IAM Groups:

- use group for giving authorization with IAM policies.

Managing aws credentials

- AWS Username/password with MFA

- Access Keys

- MFA for API calls.


18 June, 2021

Git Useful Commands

 Git is open source source control management tool and Now a days Git is very popular tool for SCM.

Main reasons for Most of the IT industry adapted git tool is:

     Flexibility


Use Git workflow to manage your project work effectively.

working with set of guidelines increases git's consistency and productivity.


Remote repository:

The remote repository is the server where all the collaborators upload changes made to the files.

Local Repository:

Local repository is user's copy of the version database.The user access all the files through local repository and then push the change made to the remote repository.

Workspace:

workspace is user's active directory.The user modifies existing files and create new files in this space.

git track these changes compared to your local repository.

Stage:

stage is a place where all the modified files marked to be committed are placed.