Mô tả

The following sentence is annoying, but also true: the best time to learn Git was yesterday. Fortunately, the second best time is today!  Git is an essential tool for work in any code-related field, from data science to game development to machine learning.  This course covers everything you need to know to start using Git and Github in the real-world today!

The course's 20+ sections are broken down into four separate units:

  • Git Essentials

  • Next Level Git

  • Github & Collaboration

  • The Tricky Bits

We start off with Git Essentials.  The goal of this unit is to give you all the essential Git tools you need for daily use.  We start off talking about version control software, what it is, why it matters, and the history of Git.  Then we install Git and run through the Unix commands you'll need to work with Git (you can skip this if you're already familiar).  The bulk of this unit is focused on teaching the core Git mechanics like committing and branching and the associated concepts: the working directory, the repository, the staging area, etc.    We cover Git commands including: git init, git add, git commit, git status, git log, git branch, and git merge.  We end with a detailed look at branching, merging, and resolving conflicts.

Then we move on to out Next Level Git unit, where we cover additional commands and Git concepts that are extremely useful, but maybe not as "core" as the Git Essentials.  We start with a comprehensive look at the gif diff command and the various comparisons that we can make between commits, branches, the working directory, the staging area, and more!  We pay special attention to reading and parsing the dense output generated by diffs.  Then we shift our focus to stashing with the git stash command, a "convenience command" that many users love incorporating into their Git workflow.  Finally, we dive deep into undoing changes and time traveling with Git.  We learn how to revisit earlier work, detach and re-attach HEAD, and discard changes.  We cover git commands that help us undo changes including git checkout, git restore, git reset, and git revert.

Next up, we change gears to focus on Github & Collaboration.  We start by exploring Github (and similar tools) that host remote repositories and discussing the benefits they provide.  We create our own Github repositories and sync up changes between our remote and local repositories using the git push, git pull, and git fetch commands.  We then focus on commonly used collaboration workflows that students may encounter in the real world: feature branching, pull requests, forking & cloning, and more! We discuss contributing to open source projects and configuring Github repositories for collaboration. We also spend some time learning about useful Github features including Github Gists and Github Pages for free static hosting.

The last unit in the course, The Tricky Bits, is really just a collection of useful Git command and advanced topics.  We start by covering one of the "scarier" Git commands: rebasing!  We discuss the potential benefits and pitfalls of rebasing and compare it to merging.  Then we learn how to clean up our Git history by rewording, editing, dropping, and squashing commits using the interactive rebase command.  Next, we discuss Git tags (lightweight and annotated tags) semantic versioning and tagging workflows.  After that, we move on to a deep dive into the inner workings of Git.  We discuss the files and folders Git uses internally, the role of hashing functions in Git, and the role of Git objects (blobs, trees, etc.). Next, we talk about reference logs and the git reflog command.  Specifically, we learn how we can use reflogs to rescue "lost" commits and undo rebases.  Finally, we learn how to write custom and powerful Git aliases!

Throughout the course, you'll find tons and tons of diagrams and visual references I've created to try and explain Git.  The course also includes exercises I've tested on my in-person students, to give you an opportunity to practice the concepts in the course along the way.  If you are reading this sentence, I congratulate you on making it this far :) I hope you enjoy the course!

Bạn sẽ học được gì

Yêu cầu

Nội dung khoá học

20 sections

Course Orientation

5 lectures
Welcome To The Course!
04:26
Join Our Community!
00:25
What The Course Covers
03:52
A Note On The Exercises
02:07
Accessing The Slides & Diagrams
01:09

Introducing...Git!

6 lectures
What Really Matters In This Section
01:24
What Exactly Is Git?
03:08
Visualizing Git
06:49
A Quick History Of Git
05:03
Who Uses Git?
05:58
Git Vs. Github: What's The Difference?
03:25

Installation & Setup

10 lectures
What Really Matters In This Section
01:55
Installing Git: Terminal Vs. GUIs
06:16
WINDOWS Git Installation
08:53
MAC Git Installation
03:27
Configuring Your Git Name & Email
04:13
Installing GitKraken (Our GUI)
03:46
Terminal Crash Course: Introduction
03:04
Terminal Crash Course: Navigation
12:18
Terminal Crash Course: Creating Files & Folders
09:47
Terminal Crash Course: Deleting Files & Folders
06:42

The Very Basics Of Git: Adding & Committing

10 lectures
What Really Matters In This Section
01:12
What Is A Git Repo?
04:05
Our First Commands: Git Init and Git Status
03:54
The Mysterious .Git Folder
03:34
A Common Early Git Mistake
03:32
The Committing Workflow Overview
06:24
Staging Changes With Git Add
07:15
Finally, The Git Commit Command!
04:51
The Git Log Command (And More Committing)
08:24
Committing Exercise
07:50

Commits In Detail (And Related Topics)

9 lectures
What Really Matters In This Section
02:13
Navigating The Git Documentation
04:06
Keeping Your Commits Atomic
06:20
Commit Messages: Present Or Past Tense?
03:09
Escaping VIM & Configuring Git's Default Editor
09:01
A Closer Look At The Git Log Command
04:06
Committing With A GUI
06:25
Fixing Mistakes With Amend
04:59
Ignoring Files w/ .gitignore
10:41

Working With Branches

12 lectures
What Really Matters In This Section
02:05
Introducing Branches
05:32
The Master Branch (Or Is It Main?)
04:43
What On Earth Is HEAD?
05:36
Viewing All Branches With Git Branch
01:22
Creating & Switching Branches
07:56
More Practice With Branching
05:27
Another Option: Git Checkout Vs. Git Switch
04:38
Switching Branches With Unstaged Changes?
03:56
Deleting & Renaming Branches
05:33
How Git Stores HEAD & Branches
05:27
Branching Exercise
08:09

Merging Branches, Oh Boy!

9 lectures
What Really Matters In This Section
01:46
An Introduction To Merging
05:16
Performing A Fast Forward Merge
04:31
Visualizing Merges
04:36
Generating Merge Commits
09:43
Oh No! Merge Conflicts!
03:18
Resolving Merge Conflicts
08:13
Using VSCode To Resolve Conflicts
07:41
Merging Exercise
11:06

Comparing Changes With Git Diff

11 lectures
What Really Matters In This Section
01:51
Introducing The Git Diff Command
04:29
A Guide To Reading Diffs
10:25
Viewing Unstaged Changes
03:51
Viewing Working Directory Changes
03:28
Viewing Staged Changes
02:05
Diffing Specific Files
02:39
Comparing Changes Across Branches
04:44
Comparing Changes Across Commits
02:09
Visualizing Diffs With GUIs
06:25
Diff Exercise
11:14

The Ins and Outs of Stashing

8 lectures
What Really Matters In This Section
01:46
Why We Need Git Stash
07:45
Stashing Basics: Git Stash Save & Pop
03:43
Practicing With Git Stash
03:25
Git Stash Apply
04:10
Working With Multiple Stashes
06:41
Dropping & Clearing The Stash
02:12
Stashing Exercise
05:04

Undoing Changes & Time Traveling

10 lectures
What Really Matters In This Section
02:09
Checking Out Old Commits
07:09
Re-Attaching Our Detached HEAD!
05:34
Referencing Commits Relative to HEAD
04:02
Discarding Changes With Git Checkout
05:16
Un-Modifying With Git Restore
06:05
Un-Staging Changes With Git Restore
04:03
Undoing Commits With Git Reset
07:45
Reverting Commits With...Git Revert
06:26
Undoing Changes Exercise
10:05

Github: The Basics

16 lectures
What Really Matters In This Section
01:39
What Does Github Do For Us?
06:23
Why You Should Use Github!
04:36
Cloning Github Repos With Git Clone
08:14
Cloning Non-Github Repos
02:55
Github Setup: SSH Config
07:31
Creating Our First Github Repo!
06:02
A Crash Course on Git Remotes
07:04
Introducing Git Push
08:48
Touring A Github Repo
03:40
Practice With Git Push
03:59
A Closer Look At Git Push
06:07
What does "git push -u" mean?
05:33
Another Github Workflow: Cloning First
04:19
Main & Master: Github Default Branches
06:10
Github Basics Exercise
10:25

Fetching & Pulling

9 lectures
What Really Matters In This Section
01:20
Remote Tracking Branches: WTF Are They?
05:59
Checking Out Remote Tracking Branches
07:18
Working With Remote Branches
09:33
Git Fetch: The Basics
05:46
Demonstrating Git Fetch
09:26
Git Pull: The Basics
04:12
Git Pull & Merge Conflicts
05:12
A Shorter Syntax For Git Pull?
05:08

Github Grab Bag: Odds & Ends

10 lectures
What Really Matters In This Section
02:30
Github Repo Visibility: Public Vs. Private
05:37
Adding Github Collaborators
04:03
Github Collaboration Demo
07:16
What are READMEs?
04:27
A Markdown Crash Course
09:47
Adding a README To A Project
04:41
Creating Github Gists
05:55
Introducing Github Pages
05:03
Github Pages Demo
09:55

Git Collaboration Workflows

14 lectures
What Really Matters In This Section
02:31
The Pitfalls Of A Centralized Workflow
07:41
Centralized Workflow Demonstration
11:36
The All-Important Feature Branch Workflow
07:12
Feature Branch Workflow Demo
13:13
Merging Feature Branches
04:33
Introducing Pull Requests
09:06
Making Our First Pull Request
06:25
Merging Pull Requests With Conflicts
11:33
Configuring Branch Protection Rules
06:21
Introducing Forking
03:28
Forking Demonstration
05:29
The Fork & Clone Workflow
06:30
Fork & Clone Workflow Demonstration
11:19

Rebasing: The Scariest Git Command?

7 lectures
What Really Matters In This Section
01:32
Why is Rebasing Scary? Is it?
02:36
Comparing Merging & Rebasing
07:12
Rebase Demo Pt 1: Setup & Merging
07:14
Rebasing Demo Pt 2: Actually Rebasing
09:23
The Golden Rule: When NOT to Rebase
05:08
Handling Conflicts & Rebasing
06:27

Cleaning Up History With Interactive Rebase

5 lectures
What Really Matters In This Section
01:08
Introducing Interactive Rebase
03:13
Rewording Commits With Interactive Rebase
10:44
Fixing Up & Squashing Commits With Interactive Rebase
07:17
Dropping Commits With Interactive Rebase
03:27

Git Tags: Marking Important Moments In History

11 lectures
What Really Matters In This Section
01:41
The Idea Behind Git Tags
03:41
A Side Note On Semantic Versioning
06:58
Viewing & Searching Tags
06:23
Comparing Tags With Git Diff
04:22
Creating Lightweight Tags
03:56
Creating Annotated Tags
03:35
Tagging Previous Commits
01:35
Replacing Tags With Force
01:33
Deleting Tags
00:51
IMPORTANT: Pushing Tags
03:40

Git Behind The Scenes - Hashing & Objects

12 lectures
What Really Matters In This Section
02:01
Working With The Local Config File
09:55
Inside Git: The Refs Directory
06:57
Inside Git: The HEAD file
02:24
Inside Git: The Objects Directory
02:51
A Crash Course On Hashing Functions
07:01
Git As A Key-Value Datastore
03:51
Hashing With Git Hash-Object
08:42
Retrieving Data With Git Cat-File
08:51
Deep Dive Into Git Objects: Blobs
03:07
Deep Dive Into Git Objects: Trees
08:57
Deep Dive Into Git Objects: Commits
14:05

The Power of Reflogs - Retrieving "Lost" Work

8 lectures
What Really Matters In This Section
01:34
Introducing Reflogs
06:24
The Limitations of Reflogs
01:18
The Git Reflog Show Command
07:05
Passing Reflog References Around
04:50
Time-Based Reflog Qualifiers
05:27
Rescuing Lost Commits With Reflog
07:08
Undoing A Rebase w/ Reflog - It's A Miracle!
09:44

Writing Custom Git Aliases

6 lectures
What Matters In This Section
01:04
The Global Git Config File
04:24
Writing Our First Git Alias
03:12
Setting Aliases From The Command Line
01:34
Aliases With Arguments
04:19
Exploring Existing Useful Aliases Online
05:35

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.