Overview of GIT
GIT training provides summary about the GitHub a web-based version control repository hosting service. It proposes all the distributed version control and source code management functionality of Git and by also adding its own features.
GIT provides several partnership features such as bug tracking, feature requests, task management, and wikis for every project and also provides access control.
Duration
2 Days
Prerequisite for GIT
No prior experience with Git is required.
Course Outline for GIT
Introduction
- What is a Version Control System (VCS)?
- Distributed vs Non-distributed VCS
- What is Git?
- Where did it come from?
- Alternatives to Git
- Cloud-based solutions (GitHub, Gitlab, Bitbucket etc.)
Installation and Configuration
- Obtaining Git
- Installing Git
- Common configuration options
- GUI tools
Key Terminology
- Clone
- Working Tree
- Checkout
- Staging area
- Add
- Commit
- Push
- Pull
- Stash
Git – Local Repository Actions
- Creating a repository (git init)
- Checking status (git status)
- Adding files to a repository (git add)
- Committing files (git commit)
- Removing staged files (git reset)
- Removing committed files (git rm)
- Checking logs (git log)
Git – Remote Repository Actions
- Creating a remote repository (git init)
- Cloning repositories (git clone)
- Update remote repository from the local (git push)
- Update local repository from the remote (git pull)
Tagging in Git
- What are Git Tags?
- Listing tags
- Lightweight tags
- Displaying tag details (tag show)
- Annotated tags
- Checking out tags
- Pushing tags
- Pulling tags
Git – Stashing Changes
- What is Stashing?
- Using Stash
- Creating a branch from a Stash
Branching in Git
- What is a branch
- A note about andlt; HEAD and gt;
- Listing branches
- Create new branch
- Checkout branch
- Pushing branches
- Pulling branches
Merging in Git
- Fetching Changes (git fetch)
- Rebasing (git rebase)
- Git Pull
Git Workflows
- Different ways of using Git
- Centralized
- Feature Branch
- Gitflow Workflow
- Forking Workflow
Advanced Repository Actions
- Removing untracked files (git clean)
- Remove staged changes (git reset)
- Revert a commit (git revert)
- Checkout a previous commit (git checkout)
Advanced Branching and Merging
- Deleting a Branch
- Fast forward merge
- Three-way merge
- Resolving merge conflicts
- Cherry-Picking (git cherry-pick)
Advanced Git Configuration
- Aliases
- Submodules
- Patches
- Hooks