12 GIT commands DevOps beginner

Опубликовано: 30 Сентябрь 2024
на канале: beginner.academy
331
15

Git is a distributed version control system that allows you to track changes in your code and collaborate with other developers. Here are some of the basic Git commands:

git init: Initializes a new Git repository in the current directory.

git add: Adds changes to the staging area.

git commit: Saves changes to the local repository with a message describing the changes.

git push: Uploads local changes to a remote repository.

git pull: Downloads remote changes to the local repository.

git clone: Downloads a copy of a remote repository to your local machine.

git status: Shows the current status of the repository.

git log: Displays a history of the repository's commits.

git branch: Lists all branches in the repository.

git checkout: Switches to a different branch.

git merge: Merges changes from one branch into another.

git diff: Shows the differences between two versions of a file.

These are some of the most commonly used Git commands. For more information and options, you can use the git --help command or visit the Git documentation.

If you are a beginner or individual who wants to switch to/learn IT DevOps/cloud/Kubernetes. Then please join.
Youtube: https://www.youtube.com/beginneracade...
Telegram : https://t.me/beginner_academy
FB:   / 580314426414395  
Insta :   / beginner.academy  

https://beginner.academy/