1.
The
git status
command provides the current status of your local repository. Use the git status
command to see the current status of your local GitKit-FarmData2 repository.(a)
- The branch name is displayed in the first line after "On branch".
- Correct! The first line specifies the current branch.
- The branch name is displayed at the end of the second line. It is "origin/main".
- The second line specifies the origin branch not the active branch.
- The branch name is not displayed in the output from this git command.
- Look again, the active branch is listed.
- The branch name is displayed at the end of the last line. It is "working tree".
- The last line indicates if there are changes to commit.
What part of the output tells you which branch is currently active in your repository?
Hint.
Look at the first line of the output from the
git status
command.(b)
Your output should contain the text “Your branch is up to date with ’origin/main’.” What do you think it means that your branch is “up to date”?
(c)
Your output should contain the text “nothing to commit, working tree clean.” What do you think it means that you have “nothing to commit.” Hint: when would you have something to commit? This is the opposite of that!