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

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube