Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

answers to questions :)<3 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions answers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
What is the difference between git and GitHub?
- Git is the version control system whereas GitHub is a cloud based system that hosts git repositories.

Why is version control important?
- Version control is so so so important for collaborative projects. Version control lets many people work on a code base at the same time (on different branches), and allows us to track all changes through Github.

What is the command to view a branch's commit history?
- git log

What command lists all the branches in your local
repository?
- git branch

Which one lists those in the remote?
- git status

To prevent specific files and folders from being commited to a repository, what should you do?
- put them in the git ignore file