Code Fellows reading notes
It is a system that allows you to record changes and go back to previous versions of a file. It also allows you to track the changes, see who made the changes and compare changes. A VCR (Version Control System) allows you to rectify changes easier.
A local version control entails one database on your hard disk that stores changes to files.
This system is a single server storing all changes and file versions, which can be accesed by various clients. This makes collaboration better by eliminating the need to involve all local databases. Programmers will have more knowledge of team members’ activities and provide more control over sharing tasks.
This addresses the vulnerability of the CVS failing. If a CVS gooes down, collaborator cannot work with each other on a file or save changes and new versions. And if there is no backup there is a possibility of losing all of the work. But the DVCS prevent this situation by allowing clients to create mirrored repositories. This serve as a data backup and can be placed on the server to replace any lost information.
I is a DVCS that allow us to take snapshots of what we do to our files and folders. Each time we save (commit changes, Git creaaes a snapshot of he file and store a reference (message) to it.
Files in Git can reside in three main states:
Link to How to Set Up a Repository in Git
git add
(file name)git commit -m "your message"
git push origin main
note: to know the current status: git status