notebook/notes/git/index.md

2.9 KiB
Raw Permalink Blame History

title TARGET DECK FILE TAGS tags
Git Obsidian::STEM git
git

Overview

Files in the working directory are in one of two states:

  • Tracked - files that were in the last snapshot or newly staged.
  • Untracked - files in the working directory that aren't tracked.

Tracked files may be unmodified, modified, or staged.

%%ANKI Basic Files in the working directory are in one of what two states? Back: Tracked and untracked. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

%%ANKI Basic What is a tracked file? Back: A file that is staged or exists in the latest snapshot. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

%%ANKI Basic What is an untracked file? Back: A file that is neither staged nor exists in the latest snapshot. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

%%ANKI Basic What three statuses can a tracked file be in? Back: Unmodified, modified, and staged. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

%%ANKI Basic What does it mean for a tracked file to be unmodified? Back: The version in the working directory is the same as in the last snapshot. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

%%ANKI Basic What does it mean for a tracked file to be modified? Back: The version in the working directory is different from that in the last snapshot. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

%%ANKI Basic What does it mean for a tracked file to be staged? Back: The version in the working directory has been added to the index. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

%%ANKI Basic How do you convert an untracked file to a tracked file? Back: Stage the file. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

%%ANKI Basic What operation converts an unmodified file to a modified file? Back: Editing the file. Reference: Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).

END%%

Bibliography

  • Scott Chacon, Pro Git, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).