Manual Version Control
|
Version control reduces mental clutter.
Version control allows for easier reversion.
Version control allows multiple people to work in parallel.
|
Automated Version Control
|
|
Creating a Repository and Tracking Changes
|
Initialize a new repository with File >> New Repository .
Changes saved in files get staged in Git.
Once you’ve made and reviewed your changes, committing them takes a snapshot of your repository.
|
Ignoring Things
|
Ignoring files reduces visual clutter and makes you less error-prone.
Groups of files can be ignored all at once, and you can make exceptions to those groups.
|
Remotes in GitHub
|
A local Git repository can be connected to one or more remote repositories.
‘push’ copies changes from a local repository to a remote repository.
‘pull’ copies changes from a remote repository to a local repository.
|
Exploring History
|
The GitHub website will show a list of changes, and show the differences between commits.
We can download or copy from old versions of files.
|
Collaborating
|
|
Conflicts
|
Conflicts occur when two or more people change the same file(s) at the same time.
The version control system does not allow people to overwrite each other’s changes blindly, but highlights conflicts so that they can be resolved.
|