0
0
Gitdevops~5 mins

git status to see current state - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the git status command show?
It shows the current state of the working directory and staging area, including changes to be committed, untracked files, and files with changes not staged for commit.
Click to reveal answer
beginner
What section in git status output lists files ready to be committed?
The section called "Changes to be committed" lists files that have been staged and are ready to be committed.
Click to reveal answer
beginner
What does it mean if a file is listed under "Untracked files" in git status?
It means the file is new and Git is not tracking it yet. You need to add it with git add to start tracking.
Click to reveal answer
beginner
How can git status help before committing changes?
It helps by showing which files are staged, unstaged, or untracked, so you know exactly what will be included in the next commit.
Click to reveal answer
beginner
True or False: git status changes any files or commits anything.
False. git status only shows information. It does not change files or create commits.
Click to reveal answer
What does git status NOT show?
AUntracked files
BThe content of files
CFiles staged for commit
DChanges not staged for commit
If a file is modified but not staged, where does git status list it?
AChanges not staged for commit
BUntracked files
CIgnored files
DChanges to be committed
Which command would you use after git status to start tracking a new file?
Agit clone
Bgit commit
Cgit push
Dgit add
What does it mean if git status shows "nothing to commit, working tree clean"?
AThere are untracked files
BThere are staged changes
CAll changes are committed and no modifications exist
DGit is not initialized
Which of these is a safe command to run anytime to check your current Git state?
Agit status
Bgit reset --hard
Cgit clean -f
Dgit push --force
Explain what information git status provides about your project files.
Think about the different file states Git tracks.
You got /4 concepts.
    Describe how you would use git status before making a commit.
    Consider the steps before saving your changes permanently.
    You got /4 concepts.