Added a what is git section

main
RedStealthDev 2 years ago
parent 5218ee7845
commit 050df496b1

@ -51,9 +51,21 @@
## Usage <a name="user-content-Usage"></a> ## Usage <a name="user-content-Usage"></a>
### Table of Usage ### Table of Usage
1. [Commit Pull Push](#Usage-cpp) 1. [What is git?](#WhatIsGit)
2. [Branches](#Usage-Bran) 2. [Commit Pull Push](#Usage-cpp)
3. [Branches](#Usage-Bran)
### What is git <a name="user-content-WhatIsGit"></a>
`Git` is a repository management system and can be explained as a google drive folder shared to everyone added to it.\
But this drive folder is special because this folder can save your old changes additions and deletions of your files.\
Lets say you added a image long ago that you think isnt needed anymore and decide to delete it.\
But The whole program breaks and you nead that file back, so instead of remaking or finding it again you can yust use the special feature of git that allows you to undo the deletion and go back to before it happened.\
This is one strength but not the only one that Git has and there is one more i want to explain.\
So lets say that you are a big team of programmers that are working on a project but how would you go about getting the new code to work with the old.\
That is were Git's feature called branches come in they are basicaly a copy of the main folder branches of with some new code like maby you make a script that handles the main menu.\
And when that code is done you can do a `merge/pull request` and turn the branch around so that it connects back to the main project again.
### Commit Pull Push <a name="user-content-Usage-cpp"></a> ### Commit Pull Push <a name="user-content-Usage-cpp"></a>
### Branches <a name="user-content-Usage-Bran"></a> ### Branches <a name="user-content-Usage-Bran"></a>
Loading…
Cancel
Save