Git & GitHub Flashcards

1
Q

Version Control

A

Previous versions of a project are stored in the history so we don’t need to have a million separate files

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

Some benefits of version control

A

Collaboration
Restoring old work
Centralizing progress tracking
Merging separate work together

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

Git

A

A tool for version control! (created by Linus Torvalds)

Stores project files in repositories

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

Repository

A

A central location where data is stored and managed

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

9 simplified steps to creating a repo

A
  1. Create a folder you want to become a repo (getting a box)
  2. cd into the folder (opening the box)
  3. touch index.html
  4. edit index.html to your liking (making the gift)
  5. git init
  6. git add -A (putting the gift into the box)
  7. git commit -m “write a message describing your changes” (sealing the box and adding a message)
  8. Create a new repo in GitHub
  9. Follow GitHub instructions starting with git branch -M main (send the gift to the recipient)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Remote Addresses

A

The URL you send your project to to be stored on GitHub - (git remote -v)

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

Push

A

sending outside of my machine

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

Origin

A

recipient address (GitHub)

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

Main or Master

A

Default branch

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

Fork

A

Taking a copy of someone else’s repo on GitHub. This will save a new version to your account so you can edit the repo without messing up the original code.

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

Parallelizing

A

Doing work on multiple machines at once while maintaining unified codebass

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