SL_Part1 Flashcards
Part 1 of the front end development course
What is a repository
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.
What is the difference between a client and a server
Client is a program that makes requests to the server. A server is a program that fulfils those requests
What is a Git server
A server that is set up to host and manage repos
What is the difference between Git and GitHub
-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
Can you only use Git via GitHub
No, you can use other online services (BitTorrent, AWS), with an in-house server, or on your local computer without any server at all
What is a Git client
A software application, such as GitHub desktop, that allows you to interact with a Git repo
what is the difference between a program and software
-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.
What are some of the Git commands and what are they used for
Create repo: git init (initialise)
Make changes: add, commit, status
Sync repos: push, pull, add origin
Parallel development: branch, merge, rebase.
git config –global user.username
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.
git remote add origin
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)
git push origin master
This command pushes local file to the remote repo. (This will push it to the master branch)
What is the difference between Git and GitHub when it comes to the command line
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.
What is the relationship between GitHub and HTTPS
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
Why is HTTPS used instead of HTTP
HTTPS is a more secure version of HTTP because it uses SSL to encrypt information sent between the client and the server.
What is SSL
Secure Sockets Layer
- A security protocol that encrypts the data sent between the client and the server.