Git Tutorial Library from Career Karma
Tags: git, codenewbie, tutorial
Published: 2020-06-06 10:48:32

At some point in your journey to becoming a programmer, you will likely have heard the term Git come up. But [what is Git](https://careerkarma.com/blog/what-is-git/), and how does it work?

Git is a type of version control system used to maintain code and is a crucial tool for developers to manage their code and collaborate on projects.

To help you get the most out of Git, we’ve compiled a list of Career Karma tutorials on the most important concepts to learn with Git.


## Git Tutorial Library from Career Karma


### Add, Commit, and Push

The [Git add](https://careerkarma.com/blog/git-add/) puts local modified files and folders into a staging area. After a Git add, [Git commit](https://careerkarma.com/blog/git-commit/) can be used to turn the changes into a commit, and [Git push](https://careerkarma.com/blog/git-push/) can be used to push those changes to the main repository.


### Checkout

Checkout switches between different versions of a code repository. [Git checkout](https://careerkarma.com/blog/git-checkout/) is essential for working on a new branch, existing branch, or remote branch. It operates on files, commits, and branches.


### Clone

Creating local copies of a Git repository stored elsewhere is a central part of the Git version control system. When you’re setting up a repository, the [Git clone](https://careerkarma.com/blog/git-clone/) command can be used to create a local copy of a repository stored elsewhere. This copy is also referred to as a “clone.”


### Delete Branch

When you’re working with [Git branches](https://careerkarma.com/blog/git-branch/), you may decide you want to delete one. There are two approaches you can use to [delete a branch in Git](https://careerkarma.com/blog/git-delete-branch/). Which one you use will depend on whether the branch you are deleting is located on your local machine or in a remote repository.


### Diff

When you’re working with Git, you may want to compare data in your repository with another data source. That’s where the [Git diff function](https://careerkarma.com/blog/git-diff/) comes in. 


### Fetch

The [Git fetching](https://careerkarma.com/blog/git-fetch/) process allows you to retrieve commits, files, references, and other data from a remote repository and save it to your local machine. 


### Init

The [Git init command](https://careerkarma.com/blog/git-init/) is used to create and initialize a new Git repository.


### Log

How do you actually view the history your Git repository creates? That’s where the [Git log command](https://careerkarma.com/blog/git-log/) can be helpful.


### Merge

[Git merge](https://careerkarma.com/blog/git-merge/) allows you to combine the history of two branches together, and create one single branch.


### Pull

The [Git pull command](https://careerkarma.com/blog/git-pull/) is used to retrieve content from a remote repository which is then saved to your local machine.


### Revert Commit

The [Git revert commit command](https://careerkarma.com/blog/git-revert-commit/) allows you to undo a commit so that you can return a repository to the previous commit.


### Stash

The [Git stash command](https://careerkarma.com/blog/git-stash/) is used to switch contexts when working with a Git repository and save your code for a later date. 


### Tag

If you want to capture a point in the history of your repository such as a version, then you’ll want to use the [Git tag](https://careerkarma.com/blog/git-tag/) feature.