Version Control is a system that allows you to go back and forth between different versions of a file or collection of files by keeping track of changes.
Version control allows you to:
A Local VCS entails one database on your hard disk that stores changes to files.
This system entails a single server storing all changes and file versions, which can be accessed by various clients.
Its prevent if the CVS goes down ,and lead to make collaborators cannot work with each other on a file or save changes and new versions,which lead to a big problem so a DVCS allows clients to create mirrored repositories. These data backups can be easily be placed on the server to replace any lost information.Because the DVCS allows for multiple mirrored repositories, programmers working in teams can collaborate with each other in various ways to complete a joint project, which enables the use of various simultaneous workflows.
Git is a DVCS that stores data in a file system made up of snapshots. Each time you save a changed version of your project called commit
you can add it throw git commit -m " add Message here "
then Git will creates a snapshot of the file and stores a reference to it. If the file has not changed, Git only stores a reference to the already-stored identical version of it.
Git includes inherent Graphical User Interface (GUI) tools. but users can also utilize third-party tools created for particular platforms.
GUI mean Graphical User Interface or in other way “ normal windows screen”
CLI mean Command Line Interface or in other way”The black screen terminal”
we can add commands using Git the most popular commands are add commit
, puch origin main
which refer to ACP
git add .
git status
git commit -m "add Message here "
git push origin main