Git: Version Control System
you have made a product and you continuously moving forward to release and scale it. so, at any point in time, when you have to revert or downgrade update or maintain it . ... we need a version control system.
types of Git
Local Version control
Centralized Version control
Set up git with GitHub into your local system
login your GitHub into command prompt into your local system
git config --global user.name "abcchirag"
git config --global user.email "helpichirag@gmail.com"
git init
Working Directory -> Staging Area -> Commit History
Local repository
if you want to make it accessible by everyone, make it a remote repository
git init
git status
On branch master
No commits yet
we need to remove the master branch to work on the main branch
REMOVE the git - bi directly deleting the .git folder
Again Start the git, if you want to work on the main branch
git init -b main
and Then Check
git status
-
Congratulations we Are in the main branch