DevOps Classroom notes 19/Oct/2023

Minimal Git

  • Git is a Distributed Version Control System which maintains source code’s.

Setup

Clone

  • Getting the repository into local system
  • command
git clone `url`

# example

git clone https://github.com/spring-projects/spring-petclinic.git

Working in git

Preview

  • Create a new repository in your github account
  • clone the changes into your local system
  • make changes and add them to staging area
cd <into your working folder>
git add .
  • Before commiting the changes from your system we need to perform one time setup. provide username and email id Refer Here

git config --global user.name "Mona Lisa"
git config --global user.email "Mona.Lisa@qt.com"
  • commit the changes
git commit -m "some message"
  • Now to send the changes to remote repo
git push
  • To get latest changes from remote repository to local repo
git pull

System Setup

brew install git
brew install --cask visual-studio-code

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner