Version control Systems

Local version control systems:
Where the entire version of the project is stored on your local computer, which is useful when you don’t have internet access at all.
You can lose this machine or delete this project and it will disappear.

Centralized version control systems:
A service running outside of the user’s local computer can be in local or not server or a service such as github or gitlab.

Easier to share project files.

It’s easier to work with a team of people.

And you can access it from anywhere

And it always has a backup any time there is another place with the latest version.

Distributed version control systems:

Commands

SET USER: git config --global user.name “username”

SET MAIL: git config --global user.mail “email address”

SHOW ALL DATA: git config --global --list

CLONING A REPOSITORY: git clone “Location of repository”

SHOW ALL BRANCHES: git branch

CREATE A BRANCH: git branch name

SET A BRANCH: git checkout name

CHECKS STATUS OF THE REPOSITORY: git status

ADDING FILE TO COMMIT: git add <file>

ADDING A COMMIT MESSAGE: git commit -a -m “Message”

UPLOAD: git push
git push –set-upstream origin AleksanderK