Github for a DEVOPS Beginners...!!
Basic GIT commands:
git init - initialize an empty git VCS(version control system) repository.
git status - for knowing untracked files.
git add file_name.ext - for add file to staged.
git commit -m “added file_name files“.
git restore file_name.ext
git branch - for knowing the active branches.
git branch branch_name - for adding new branching.
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?
Open vs code.
Open the terminal in respected folder.
Run:
git pull origin master
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