Git & GitHub
Git Setup and Configuration
Git Initialization
Why do we need git?
- Version control (Git, GitLab, Beanstalk, PerForce, Bitbucket)
- By git we clone repository and push changes
- Change tracking
- Collaborate on project
Why do we need github?
- Remote folder/repository is hosted on GitHub
- Local clone of repository
- It is owned by Microsoft
Difference between Git & GitHub
Git | GitHub |
---|---|
1. Tool/Software | 1. Service |
2. Change control, Version control | 2. Host git repository |
3. Provides CLI (Command Line Interface Tool) | 3. Provides GUI (Graphical User Interface) |
4. Installed and maintained locally | 4. Maintained on cloud/web |
Git setup and configuration
- Search “git scm” and download it.
https://git-scm.com/downloads
- Now install it
- Open Git Bash and check git version.
git --version
- To set your Git username and email, type this in your terminal
git config --global user.name Shahadat Hossain git config --global user.name git config --global user.email bdhostit@gmail.com git config --global user.email
- Now open terminal of VS Code and launch profile “Git Bash”.