To save changes in Git, first stage them using git _______, then commit using git commit.
- add
- commit
- stage
- push
In Git, the command to stage changes before committing is git add. This command adds changes from the working directory to the staging area, allowing you to include them in the next commit.
Loading...
Related Quiz
- A 'detached HEAD' state in Git occurs when you check out a specific _______ instead of a branch.
- How can you revert a pushed commit in Git without losing history?
- During a project audit, you need to find out when a specific bug was introduced. What Git feature can help you trace the origin of this bug?
- To save changes in a new stash, you would use git stash ______.
- What is the purpose of a .gitignore file in a Git repository?