DevOps session 13: Automate git SETUP using bash scripting.

Image
  Bash scripting: A Bash Shell Script is a plain text file containing a set of various commands that we usually type in the command line. It is used to automate repetitive tasks on Linux filesystem. It might include a set of commands, or a single command. For example ,to install GIT we need to update the packages, then install git and check if installation is done using Linux commands. We can write all the command in a .sh file and we can execute the file to do all the steps mentioned above. Lets start with example from hello-world. 1.Open terminal and check the root of the bash using below command. CMD: which bash you can see path like  /usr/bin/bash or /bin/bash . 2.Create a hello-world.sh file and paste the below lines. CMD: nano hello-world.sh You can see editor ,add below lines #!/bin/bash # declare MSG variable MSG="Hello World" # print variable on a screen echo $MSG To save the file use CTRL+X, then CTRL+Y and press ENTER 3. To execute the file we need to ad...

DevOps sessions

 DEVOPS SESSIONS

DevOps session 1: Evolution of Software development

DevOps session 2: N Tier(Multi-Tier) Architecture

DevOps session 3: Roles and Responsibilities of DevOps Engineer.

DevOps session 4: DevOps life cycle and Tools

DevOps session 5: Linux setup on Windows 11

DevOps session 6: Linux commands for DevOps team

DevOps session 7: Source Code Management/ Version control systems (GIT) || Setup Git on ubuntu

DevOps session 8: Create GitHub account & Setup repo

DevOps session 9: setup GITHUB SSH authentication

DevOps session 10: Git basic commands for daily use

DevOps session 11: Git branching & best practices

DevOps session 12: GIT merging branches/resolving conflicts/tips

DevOps session 13: Automate git SETUP using bash scripting.










Comments

Popular posts from this blog

DevOps session 10: Git basic commands for daily use

DevOps session 7: Source Code Management/ Version control systems (GIT) || Setup Git on ubuntu

DevOps session 11: Git branching & best practices