- 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.
- 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.
- The command to view a branch's commit history is
git status
- 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
.
- To prevent specific files and folders from being commited to a repository, you should add their filepaths to the .gitignore file.