This course is designed to cut academic theory to just the key concepts and focus on basics tasks in Git in order to be productive quickly. Students can expect to learn the all the main features of Git in just two hours.
New. Closed captions throughout the course.
Course Outline
Course Introduction provides a welcome to this course with a few suggestions on how to get the most out of it. After that, we cover the minimum theory before getting our hands dirty with Git in the Core Concepts section.
This course is designed to cut academic theory to just the key concepts and focus on basics tasks in Git in order to be productive quickly. Students can expect to learn the all the main features of Git in just two hours.
New. Closed captions throughout the course.
Course Outline
Course Introduction provides a welcome to this course with a few suggestions on how to get the most out of it. After that, we cover the minimum theory before getting our hands dirty with Git in the Core Concepts section.
Quick Installation provides an overview on the installation process for all tools needed for this course. A more detailed set of instructions are available in the Bonus section.
In The Basics, we walk through all the commands needed to start a new project managed by Git (or enable Git for an existing project) all the way through making commits, including common file operations like moving and deleting files. We also cover how to exclude the wrong files from accidentally being committed and how to review your repository's history.
We then go a bit deeper in the Advanced section when we cover comparing changes, branching and merging (including merge conflict resolution), tagging milestones, saving temporary work, and even a bit of time travel.
Finally, Going Remote covers publishing the locally created repository (previous sections) on GitHub and BitBucket. We cover the main concepts related to working with any remote Git repositories and compare the differences between the two most popular Git hosting services.
After the main part of the course, this course offers several bonus sections that explore some topics in more detail for those that like more information.
Course Features
Presentations provide audio/video training of conceptual ideas. Since few like slide-ware presentations, slide-presentations are kept to a minimum.
Screencasts provide a video of the instructor's computer system with any actions, commands, or screens displayed and narrated. Excluding bonus lectures, this course offers about 2 hours of screencast videos.
Several attachments throughout the course provide supplemental information, illustrations, or other reference material.
A quick explanation of the reasoning for using the command line to start using Git, including new features hitting the command line first, online help being targeted at folks on the command line, the command line having more power, and the cross-platform nature of the bash terminal.
An overview of the topics that will be covered in this course, including Git basics, advanced Git, and going remote with GitHub and Bit Bucket.
A quick guide to the general approach for this curse, including step by step demos that are short and focused using the command line. As well, it is recommended to follow along with all of the examples to maximize your learning.
An overview of the foundational aspects that will be covered in this section on the basic concepts in Git. This can be skipped if you already know what Git is and does.
A quick overview of what Git is, a decentralized or distributed version control system that works off of local operations to allow it to be quick and large in scale. Git is considered de-facto for version control, making it widely supported.
In Git, the collection of files being managed and all of their version history is considered the repository. Not everything in the folder has to be managed by Git, but the .git folder is what contains all of the versioning files.
Commits are snapshots of an entire repository, showing the changes between it and the previous state of the Git repository's files. These commits follow a timeline of events to get you from one point to the next.
An overview of the way that this section lists out all tools to be installed in concise, slide driven installation guides.
An overview of what we will need to install on Windows for this course, including Git for Windows, Notepad++, and P4Merge.
An overview of what we will need to install on Mac OS for this course, including Git from Apple, TextMate 2, and P4Merge.
An overview of the foundational commands that will be covered in this section, including getting information, creating a basic Git workflow, doing file operations, excluding files, and undoing mistakes.
Creating a new Git repository on our local system using the command line interface with the command "git init".
An overview of the three basic states of a file in Git, including working directory, staging area, and the repository (.git folder). This may also include the fourth stage, remote, which is a separate repository tacked on at the end to mirror the local side's final repository state.
Continuing with our demo repository by adding files and checking out the status of the repository using the "git status" command to build up to our initial commit.
Understanding the inner workings of the Git repository by looking in and seeing what happens when the ".git" folder is removed.
Adding Git source control to an existing folder and files, recreating our Git project that we just started.
Adding new files before our initial commit on our newly created Git repository, using special characters to add multiple files at once.
Using "git log" to show the listing of commits that are part of this repository.
Editing an existing file that is currently managed by Git, in order to show how Git tracks modified files and how Git can add and commit these changes in one command.
Backing out changes by reverting changes from our staging area and then reverting the changes entirely.
Using the Git log command to display an easier to read commit log history, before making an alias that will run that command without having to type the full command out.
Using Git to rename and delete files, which will keep track of the changes between renames and deletes.
Using non-Git based commands to rename and remove files outside of Git in order to show how this messes up the Git history and to then show how to add the link back so Git can properly track the files.
Using the ".gitignore" file to exclude files that we don't want in our Git repository by using expressions to exclude files by extension type.
A description of the more advanced topics that will be covered in this section, including comparing changes, branching, creating milestones, time travel, and more.
Using "git diff" to show differences between two commit points within our Git history.
An explanation of what branches are, including diagrams of the most common types of branch resolutions, including fast forward, no fast forward, automatic merges, and manual merge conflicts.
An explanation of what special markers do, allowing you to access special points on the Git repository, such as HEAD, which is the most recent commit.
Creating and managing branches other than Master in our Git repository, then merging in those changes with the easiest path, a fast forward merge, finally deleting the branch we no longer need.
Creating a conflict between branches and walking through the steps to use our merge tool to resolve the conflict.
Looking at adding tag onto specific commits in Git. This allows us to create tags to associate with commits in our history in order to mark out milestone builds for future reference with a lot more detail.
Saving progress in our current repository by stashing our changes to be able to unpack them inside a different branch, effectively moving the changes so we don't have to destroy them.
Resting to arbitrary commits using "reset" and using "reflog" to display all of those changes, before finally resetting our history to the current commit without losing any history.
Exploring the remote side of Git by looking at the two main hosting services BitBucket and GitHub.
A quick explanation of what remote repositories are, basically a backup copy of your Git repository but on a remote service such as BitBucket or GitHub.
Bit bucket is a remote repository hosting service that can either be cloud hosted or hosted on a local system. The payment model is based on the number of contributors to private repositories.
Signing up for an account with BitBucket that we will use to create our remote copy of our local repository.
Creating our first demo repository in BitBucket using the basic repository creation interface.
Connecting the demo repository we just created on BitBucket to the existing project that we have on our local system.
Pushing the changes on our local repository to the remote BitBucket repository we just linked to the local repository.
Removing the remote BitBucket repository reference that we added to our local Git Repository.
Comparing the differences between GitHub and BitBucket. This comparison is out of date, as GitHub offers a fairly similar model of private repositories to BitBucket.
A quick overview of GitHub, which is currently owned by Microsoft, no longer GitHub itself. As such, GitHub has lost some popularity in hosting open source projects.
Signing into GitHub and creating a simple example repository, which we link to our local repository by pushing up our changes from our local side to the remote GitHub repository.
Using GitHub to create a repository on the remote side before then cloning it down to our local system, in order to ease the process of linking the two together.
GitHub recently changed the default branch name from "master" to "main" - which impacts the rest of this course.
Looking over the differences between fetch and pull, where fetch only looks at the differences and updates the remote references and pulling takes those changes down and tries to integrate them to our local repository.
A quick overview of what has been covered in this course, and how it will help you to be a better developer by using source control.
A quick overview of the background topics that will be covered, including a bio of the instructor, a brief history of Git, and comparing Git to other source control tools available.
A quick bio of Jason Taylor, the instructor for this course, who has had a lot of practical experience using Git on large productions.
A brief history of how Git was created out of necessity to support the Linux kernel project after a license for bit keeper was revoked.
A quick comparison of the advantages and disadvantages between Git and the leading competitors, such as Mercurial and commercial offerings.
A guide to the programs that will be installed in this section, including Git for Windows, Notepad++, and P4Merge.
Installing the versioning software Git for Windows onto our local Windows System.
Tweaking Git for Windows to be more usable throughout the rest of this course.
Getting help on commands we are going to be using in this course by using the "git help" command to detail how to use things.
Setting up the minimal configuration needed by Git to get our Git for Windows setup working.
Installing the text editor Notepad++ onto our local Windows system.
Integrating our text editor Notepad++ with our install of Git for Windows.
Installing the merge tool P4Merge onto our local Windows installation.
Integrating the functionality provided by P4Merge into Git.
A guide to the programs that will be installed in this section, including Git from Apple, TextMate 2, and P4Merge.
Installing the versioning software, Git, on our local system using the command line utility provided by Apple.
Setting up the minimal configuration needed by Git to get our Git setup working.
Installing the text editor TextMate 2 on our local Mac OS system.
Configuring TextMate 2 to be more usable throughout the rest of this course.
Configuring TextMate 2 to integrate closely with our installation of Git.
Installing the merge tool P4Merge onto our local Mac OS X installation.
Updating our terminal prompt to be more usable throughout this section by using a script.
A guide to resolving the issue of Git not working after upgrading to a new version of Mac OS.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.