Skip to content

Sanketbhandare/Git-Complete-Course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Complete Git Zero to Hero Course

Complete Git Zero to Hero Course with Practical Sessions. Keep Learning!


Course Requirements:

  1. Laptop (with admin privileges)
  2. Desire to Learn.

Module 1: Introduction to Git

  • What is Git and why use it?
  • Install Git on your system.
  • Set up Git: git config (username, email).

Module 2: Basic Git Commands

  • Creating a Repository: git init
  • Cloning a Repository: git clone <repo-url>
  • Staging and Committing:
    • git add <file> to stage.
    • git commit -m "<message>" to commit.
  • Viewing Status and Logs:
    • git status to see changes.
    • git log to view commit history.

Module 3: Branching in Git

  • Create and Switch Branches: git branch <branch-name>, git checkout <branch-name>
  • Merge Branches: git merge <branch-name>
  • Resolve Merge Conflicts: Manual conflict resolution.

Module 4: Remote Repositories

  • Add Remote: git remote add <remote-name> <url>
  • Push Changes: git push <remote-name> <branch-name>
  • Pull Changes: git pull <remote-name> <branch-name>
  • Fetching Changes: git fetch

Module 5: Working with Git Remotes

  • View Remotes: git remote -v
  • Remove or Rename Remote: git remote remove <remote-name>, git remote rename

Module 6: Git History & Log

  • View Commit History: git log --oneline
  • Show Specific Commit: git show <commit-hash>
  • Revert Changes: git revert <commit-hash>

Module 7: Git Workflow Best Practices

  • Writing Commit Messages: Use meaningful, concise messages.
  • Git Flow Models: Understand Git Flow, GitHub Flow, and Trunk-based development.
  • Rebase vs Merge: Rebase for clean history, merge for preserving context.

Module 8: Advanced Git Commands

  • Git Stash: Temporarily save changes with git stash.
  • Cherry-pick: Apply commits from other branches: git cherry-pick <commit-hash>
  • Rebase: Use git rebase for cleaner commit history.

Module 9: Collaborating on GitHub

  • Fork and Clone: Fork a repo and clone to local.
  • Pull Requests (PR): Open, review, and merge pull requests.
  • Issues & Projects: Use GitHub Issues and Project boards for collaboration.

Module 10: Git for DevOps

  • CI/CD with Git: Integrate Git with Jenkins, GitLab, or GitHub Actions.
  • Automating Deployments: Use Git in automated build and deployment pipelines.

Module 11: Git Troubleshooting

  • Resolve Merge Conflicts: Use conflict markers to resolve issues.
  • Undo Changes: Use git reset, git checkout to discard or undo changes.
  • Recover Lost Commits: Use git reflog to recover deleted or lost commits.

Module 12: Final Project

  • Implement a Git workflow with branching, merging, and collaboration.
  • Work with remotes, push/pull, and complete a project with team collaboration.

About

Complete Git Course with Practical Sessions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors