Skip to content

skallaher/LearningGit

Repository files navigation

LearningGit

A repository to teach using Git

Each of the below sections has instructions using all the following:

  • Command Line
  • VSCode
  • GitHub Desktop

Note: If you are not comfortable with using a terminal, or command line, it is recommended that you start with one of the other tools.

Refer to the Glossary for some helpful definitions.

Motivation

Read this document to read about why we're learning about Git.

What is Git

Read this document to learn more about what Git is.

Why use Git

Read this document to learn more about why using Git is a good idea.

Git Basics

Read this document to learn some basic Git commands and principles.

Branches

Read this document to learn more about what branches are and why they're useful.

Merging

Read this document to learn more about what merging is and what it is used for.

Remotes

Read this document to learn more about what a remote is and how to use one.

GitHub

Read this document to learn about GitHub and some of its features.

Working With Others

Read this document to learn how you can utilize all of the above knowledge to work well with others.


Exercises

The below are all different exercises you can use to test your Git knowledge.

Making your first commit

Let's start with the bread and butter of using Git, creating a commit.

Creating a working branch

Now that you've made commits to your repository, let's make a branch to keep our next changes separate from others.

Merging your WIP branch

Awesome! We've got a branch with our changes on it, but now we need to merge it back to the main branch.

Resolving Merge Conflicts

But, what happens when Git doesn't know what to do when you're merging? A merge conflict that we'll have to resolve manually

Working With a Remote

Let's share our work with the rest of the world by using a remote repository.

Creating a Pull Request

Sharing your changes is important. We'll use a Pull Request to let others know that we have changes we'd like to merge into the main branch of the repository.

Creating an Issue and solving it

Finally, let's put all of this together and go from creating an issue to having the changes merged into the main branch.

About

A repository to teach using Git

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors