Junior — Middle
What Git commands have you used in your practice for version control of projects?
sobes.tech AI
Answer from AI
In version control practice with Git, the following commands are often used:
git clone— copying a remote repository to a local machine.git status— viewing the current state of the repository.git add— adding changes to the index for a subsequent commit.git commit— saving changes with a message.git push— sending local commits to a remote repository.git pull— fetching and merging changes from a remote repository.git branch— managing branches.git checkout— switching between branches or commits.git merge— merging branches.
Example:
git add .
git commit -m "Added a new feature"
git push origin main