Version Control Systems
- A version Control System enables us to store code (Repository)
- Which enables multi user
- Which enables multiple versions
-
Git is most popular version control system create by Linus Torvalds
-
Git is a distributed version control system
Initial configuration of git
- hint: Use any git cheatsheet
- Git commit requires username and email address
git config --global user.name "<ur-username>"
git config --global user.email "<ur-email-id>"
Repository
- Assumption: You will be creating a repository in github first or your org already has a repository
- Clone: To get a local copy of a repository
git clone <url>
- Git supports two types of protocols
- https: requires username/token to clone
- ssh: requires ssh key to be configured
- To create an ssh key, open Terminal
ssh-keygen
- This command generates public as well as private key
