Junior — Middle
Do you have experience working with the Git version control system?
sobes.tech AI
Answer from AI
Yes, I have experience working with Git. Git is a distributed version control system that allows tracking changes in code, working with branches, and merging them.
The main operations I have worked with are:
git clone— copying a repository;git branchandgit checkout— creating and switching branches;git addandgit commit— adding changes and committing;git mergeandgit rebase— merging branches;git pullandgit push— fetching and sending changes to a remote repository.
Example of creating a new branch and committing:
git checkout -b feature/new-login
# made changes to the code
git add .
git commit -m "Added new login form"
git push origin feature/new-login