Github for a DEVOPS Beginners...!!

Prem ChoudharyPrem Choudhary
1 min read

Basic GIT commands:

  1. git init - initialize an empty git VCS(version control system) repository.

  2. git status - for knowing untracked files.

  3. git add file_name.ext - for add file to staged.

  4. git commit -m “added file_name files“.

  5. git restore file_name.ext

  6. git branch - for knowing the active branches.

  7. git branch branch_name - for adding new branching.

  8. git switch branch_name - for switching between branches.

Let say you have changes on files which is on github. So, how to get that changes to local system?

  1. Open vs code.

  2. Open the terminal in respected folder.

  3. Run: git pull origin master

0
Subscribe to my newsletter

Read articles from Prem Choudhary directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Prem Choudhary
Prem Choudhary

DEVOPS ENGINEER || AWS || JAVA || PYTHON || SPRING BOOT || SPRING SECURITY || REACT.JS || MONGO DB || MYSQL