General Flashcards
(20 cards)
What is git?
Git is a distributed version control system (DVCS) that allows multiple developers or other contributors to work on a project.
What is GitHub?
GitHub is a cloud platform that uses Git as its core technology. It simplifies the process of collaborating on projects and provides a website, command-line tools, and overall flow that allows developers and users to work together.
What is a repository?
It is a project
What is the ‘cd’ command?
It is a change directory command
What is the ‘ls’ command
It will show the listing of all the files in the directory
What is the clone command?
It a command that copies the repository and put it in a folder called its name
What are the main command on git hub?
Git status Git add Git commit Git push Git pull
What is the terminal?
It is a place where to type commands that cause actions
What is a CUI
Command User Interface
What does the command PWD do?
It shows the path to the folder you are currently in.
What does the command ‘mkdir’ do?
It creates a folder
What is the command ‘cd’?
Change directory command
What is the command to create new file?
‘Touch’ name.html
What does commit do?
It takes a snapshot of the current code
What is the ‘git init’ command for?
It is for creating a folder to hold all the commit
What is the ‘git status’?
It is a command that let you see all the files that are waiting in the “the staging are” before being committed
What is the git branch command for?
It shows you in what branch you are currently working
How do you create a new branch?
git branch name-of-new-branch
How do you move to a different branch
git checkout name-of-branch
git pull?
It ‘pulls’ all the your updates from master to your branch