Skip to main content

Command Palette

Search for a command to run...

Github for a DEVOPS Beginners...!!

Published
1 min read
Github for a DEVOPS Beginners...!!
P

DEVOPS ENGINEER | AWS | Java | Linux | Python | Git | Github | Docker | Spring Boot | Ansible | Jenkins | Algorithmic Trader | Pine Editior

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

More from this blog

Prem's blog

19 posts