Welcome to the Git Jungle

Today, we are going to go over a set of basic commands in order to learn the git command line interface.



Resources

GitHub's Projects Discovered

This is our list of projects that we discovered on GitHub, which we find interesting.

Introduction to Git Commands

Let's go over some basics together:

Git status is an easy way to quickly see the status of a git repository. You can run this from within a file structure using the command below:

git status

Git help is the command line interface's guide to itself, providing a comprehensive list of all commands and flags that can be used inside of git.

git help

Inside of a folder that has no git repository created yet, you can run 'git init' or git initialize in order to create a new repository.

git init

If a git repository already exists on GitHub, you can use git clone to create a local copy from a remote repository.

git clone

Got Commitment Issues?

We are going to practice committing code together in this section.

Git 'add' allows you to introduce files to the git tracking index. This is also called 'staging' files.

git add

Git 'rm' is a way to remove files from the staging step. Staging allows you to check what changes will be included.

git rm

Git 'commit' is how you actually save changes to your local repository.

git commit