What is Git Version Control:
Git is a version control system and allows you to manage your source code history efficiently. It also allows you to work together with other programmers.
What is Git repository?
A Git repository is a virtual storage of your project. It allows you to save your project code, which you can access when needed.
- Create a “repository” (project) with a git hosting tool (like Bitbucket)
- Copy (or clone) the repository to your local machine
- Add a file to your local repo and “commit” (save) the changes
- “Push” your changes to your main branch
- Make a change to your file with a git hosting tool and commit
- “Pull” the changes to your local machine
- Create a “branch” (version), make a change, commit the change
- Open a “pull request” (propose changes to the main branch)
- “Merge” your branch to the main branch