Domain 1: Intro to GitHub - Deck 3 Flashcards
Alpha: 4 ways GitHub makes collaboration between multi developers more efficient..
access control, issue tracking and reporting, management, messaging
What are 3 states that a file moves through.. alpha
committed modified staged
The ______ ____ command creates a new Git repository.
It can be used to convert an existing, unversioned project to a Git repository or initialize a new, empty repository. Most other Git commands are not available outside of an initialized repository, so this is usually the first command you’ll run in a new project.
git init
Git knows your file exists and it has added it to a commit.
A. Committed
B. Modified
C. Staged
a
Git creates a hidden folder called _____ and stores references and commits for this repository in it.
.git
The .git folder contains three main types of objects: commits, trees, and blobs. Commits store information about who made a change and when they made it. Trees store information about the structure of the files in a project and blobs store the actual content of the files in a project.
Git knows your file exists and it is part of a commit. However, it also knows you’ve modified the file since the last committed.
A. Committed
B. Modified
C. Staged
b
Git is tracking your file to add it to the next commit.
A. Committed
B. Modified
C. Staged
c
These are new files that have been created but are not part of any commits yet.
A. tracked
B. untracked
c. git commit
d. git add
b
For Git to track a file, you’ll need to tell it to do so by using the ___ _____command.
A. git push
B. git touch
C. git commit
D. git add
d
$ touch breakfast.txt
run code so Git tracks this new file
$…
git add breakfast.txt
The ___ ____ is a place where all changes are held to be committed at the same time.
staging area
____ allow us to work on a feature while giving us the opportunity to keep or discard our work later on.
branches
is similar to the Linux rm
command. This command deletes or removes a file from
git rm
is similar to the Linux mv
command. This command can move or rename a file, directory, or symlink
git mv
allows a user to interactively review patches before adding to the current commit
git add -p