SL_Part1 Flashcards

Part 1 of the front end development course

1
Q

What is a repository

A

It is part of the VCS (Version Control System)

  • Store your files and the different versions of the projects that you are working on.
  • Serves as a means to track the history of the versions and files that you put on the repo.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between a client and a server

A

Client is a program that makes requests to the server. A server is a program that fulfils those requests

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

What is a Git server

A

A server that is set up to host and manage repos

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

What is the difference between Git and GitHub

A

-Git is a version control tool. Its a software that can be downloaded locally on the system and can be used offline.
-GitHub is used to store, manage and share Git repos on the cloud

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

Can you only use Git via GitHub

A

No, you can use other online services (BitTorrent, AWS), with an in-house server, or on your local computer without any server at all

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

What is a Git client

A

A software application, such as GitHub desktop, that allows you to interact with a Git repo

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

what is the difference between a program and software

A

-Program: A piece of code or a set of instructions used to perform a task
-software: A collection(set) of programs and the task which it has to perform is more complex than that of a program.

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

What are some of the Git commands and what are they used for

A

Create repo: git init (initialise)

Make changes: add, commit, status

Sync repos: push, pull, add origin

Parallel development: branch, merge, rebase.

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

git config –global user.username

A

Links Git to GitHub

This is not used to change or set your global Git username. It is used to display the current username you are using, which is set in your Git configuration.

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

git remote add origin

A

This command is used to set up a connection (or “remote”) between your local repo to your remote repo like GitHub. (The remote repo is on a server)

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

git push origin master

A

This command pushes local file to the remote repo. (This will push it to the master branch)

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

What is the difference between Git and GitHub when it comes to the command line

A

Git is operated using the command line whereas GitHub uses Git for version control. And uses a GUI which makes it easier to interact with repos, especially for those who prefer not to use the command line.

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

What is the relationship between GitHub and HTTPS

A

Remember HTTPS is a protocol used for communication over the internet.
- So GitHub uses HTTPS for user authentication in order to interact with GitHub repos

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

Why is HTTPS used instead of HTTP

A

HTTPS is a more secure version of HTTP because it uses SSL to encrypt information sent between the client and the server.

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

What is SSL

A

Secure Sockets Layer

  • A security protocol that encrypts the data sent between the client and the server.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How is SSH used for communication

A

SSH (Secure Shell)

  • Generates a pair of keys on your server, a private key and a public key
  • You add your public key is shared with the party you want to communicate with securely, ensuring that your machine can be trusted.
  • Private key is kept locally (only you can access it). When you want to interact with a remote server (e.g. pushing or pulling) your local Git uses the private key to authenticate (prove identity) of your machine.
16
Q
A
17
Q
A