Version Control System
All the files in System A are stored as Version 1 in the remote repository.
Now we make some changes to the files in System A.
Files 1 ........> saved as File 1.1
Files 2 ........> saved as File 2.1
The new files are stored as Version 2 in the repository.
Allows multiple developers to work together.
Supports non-linear development because of thousands of parallel branches.
Has the ability to handle large projects efficiently.
Git vs GitHub
Git GitHub
1. Git is a software 1. GitHub is a service
2. It is installed on the 2. It is hosted on the web.
local system.
All the files in System A are stored as Version 1 in the remote repository.
Now we make some changes to the files in System A.
Files 1 ........> saved as File 1.1
Files 2 ........> saved as File 2.1
The new files are stored as Version 2 in the repository.
Distributed Version Control System
All the developers have the entire copy of code on their local system.
Distributed VCS moves from client-server approach of central VCS to peer-to-peer approach.
Git tool is an example of Distributed VCS.
What is Git ?
Git is a distributed version control tool used for source code management.
Git is used to track changes in the source code.Allows multiple developers to work together.
Supports non-linear development because of thousands of parallel branches.
Has the ability to handle large projects efficiently.
Git vs GitHub
Git GitHub
1. Git is a software 1. GitHub is a service
2. It is installed on the 2. It is hosted on the web.
local system.
3. It is used to manage 3. It is used to have a copy of the local
different versions of repository code.
the source code.
4. It provides a command 4. It provides a graphical interface to
line to interact with the store the files.
files.
Git Architecture :-
- Working Directory is the folder where you are currently working.
- You add your files to the staging area before making a commit.
- After making all the changes, you commit those files to the local repository.
- You can push the committed files to the remote repository.
- Git pull fetches all the changes from a remote repository to a local repository.
- You can create new branches and switch to them as and when required.
- After you are done with the changes, you can merge the new branches to the master branch.
No comments:
Post a Comment