Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 787 Bytes

answers.md

File metadata and controls

15 lines (9 loc) · 787 Bytes
  1. Git is a version control system that isi local to a user's system. GitHub is a cloud-based software that hosts Git. GitHub has a nice user interface that makes collaborating easier and syncs different users' work.
  2. Version control is important because it allows you to track the changes you made. You are able to see the history of changes, and if you make a mistake, you have the option of reverting back to a working version.
  3. The command to view a branch's commit history is

git status

  1. The command to list all the branches in your local repository is

git branch.

The command to list all branches in the remote is

git branch -r.

  1. To prevent specific files and folders from being commited to a repository, you should add their filepaths to the .gitignore file.