Git Github VERSION CONTROL
Git Github VERSION CONTROL
Version control, also known as source control, is the practice of tracking and managing changes to
software code.
Version control systems (VCS) are software tools that help software teams manage changes to source
code over time.
Types of VCS tools
- Distributed
- Centralized
Types of VCS tools (cont.d)
- Centralized
- Distributed
Why do we need VCS and benefits of
VCS tools.
- Conflict resolution
Benefits of VCS tools (cont.d)
- Rollback and undo changes to source code
Benefits of VCS tools (cont.d)
- Offsite source code backup
Benefits of VCS tools (cont.d)
- Other benefits include
- Team communication
-What is Git?
- Coding collaboration
Git and GitHub Intro
-Features of Git?
- Open Source
- Scalable
- Distributed
- Security
- Speed
- Branching and merging
- Data assurance
- Staging area
- Maintain the clean history
Git and GitHub Intro
-Benefits of Git?
- Saves Time
- Offline Working
- Undo Mistakes
- Track the Changes
Why Git?
if not installed:
- Mac users:
- $ brew install git
- Windows users:
- Download and install from https://gitforwindows.org/
Practice Time!
- Configure git to use your name and email
address for all commits by the current user
- $ ls –la
- $ git remote -v
Practice Time!
- Create a new repo in Github
- $ git remote -v
origin https://github.com/agaparov-relay/react-app-test.git (fetch)
origin https://github.com/agaparov-relay/react-app-test.git (push)
- $ ls –l
- $ git push
- $ git push --set-upstream origin main
Practice Time!
- $ git branch <new-branch>
- $ git branch
- $ git checkout <new-branch>
Practice Time!
- $ git checkout –b <new-branch>
- $ git branch
Practice Time!
- Delete a merged branch
- $ git branch –d <branch-name>
- $ cd <repo-name>
- $ git branch
Questions?