Domain 1: Intro to GitHub - Deck 4 Flashcards

1
Q

A file’s changes are not recorded

A

untracked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A file’s changes are recorded

A

tracked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A stage where the changes to files are ready to be committed

A

staged files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A tool similar to VCS to store source code

A

Source Control Management (SCM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A command that can detect that there were changes made to the file and will do its best to apply the changes

A

patch
A patch in Git is a file that contains a set of changes (diffs) between two versions of a repository. Patches are useful for sharing changes without using a central repository or for applying changes from one branch or repository to another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A stage where changes have been made to a file, but the have not been stored or committed

A

modified files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A file maintained by Git that contains all the information about what files and changes are going to go into the next commit

A

git staging area

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A log that displays commit messages

A

git log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A database for a Git project that stores the changes and the change history

A

Git directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A configuration file that specifies the mappings between IP addresses and host names in your network

A

dns zone file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A command to find the differences between two files

A

diff

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A stage where the changes made to files are safely stored in a snapshot in the Git directory

A

commit files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A command to make edits to multiple files and treat that collection of edits as a single change

A

commit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Git Directory vs. Working Tree vs. Staging Area

A
  • Git directory: contains the history of all the files and changes
  • Working tree: contains the current state of the project, including any changes that we’ve made
  • Staging Area: contains the changes that have been marked to be included in the next commit
  • When committing new files or changes with git commit, the user is asked to provide a commit message because you cannot commit with an empty commit message
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe important aspects of git

A
  • VCS created in 2005 by Linus Torvalds (he started the Linux kernel)
  • Free open source system available for installation
  • Every person can contribute to a repository has a full copy of repository on their own development machine
  • Can work as a standalone program as a server and as a client
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Explain what a VCS version control system is

A
  • Automates the process of version control, tracks changes to a file or set of files over time so that you do not have to manage file versions manually or with custom automation script, keeps a complete history of your code and other files, allowing you to return to a previous version if needed. Example: Git and GitHub
  • Git helps us keep track of our changes and also how we can use it to collaborate with others or avert changes
  • Commit: can make edits to multiple files and treat that collection of edits as a single change
  • Repositories: centralized digital storage that developers use to make and manage changes to an application’s source code
17
Q

Difference between linear sequence and non-linear commits

A

linear sequence
commits in 1 branch

non linear commits
commits on different branches

18
Q

git vs github

A
  • git: installed and maintained on your local system (rather than the cloud)
  • github: repository hosting service
    exclusively cloud based
    can share your code with others
19
Q

Command to addto add a new remote

A

git remote

20
Q

Command to send local updates to a remote

A

git push

21
Q

Command to retrieve updates from a remote

A

git fetch

22
Q

Commandto get remote updates into your local repository.

A

git pull