Junior — Middle
What are the main Git commands used for making changes to a repository?
sobes.tech AI
Answer from AI
Basic Git commands for making changes to a repository:
git add <file>— adds changes to the index (staging area), preparing them for commit.git commit -m "message"— saves the committed changes in the local repository with a description.git push— pushes commits from the local repository to the remote.
Example:
git add example.py
git commit -m "Added new functionality"
git push origin main