Skip to content

Instantly share code, notes, and snippets.

@airicbear
Last active November 22, 2019 20:54
Show Gist options
  • Save airicbear/3cb7129ce74ad285b4e3d1862af0ca84 to your computer and use it in GitHub Desktop.
Save airicbear/3cb7129ce74ad285b4e3d1862af0ca84 to your computer and use it in GitHub Desktop.
How to use Git

What is Git?

Git is a tool that you use to keep track of changes in your code.

How do you use Git?

To use Git, install it on your computer.

Using Git in a project

To use Git in a project, type git init in your project folder.

Updating changes to Git

Generally, you can use the following commands.

git add .
git commit

Using Git on another server (such as GitHub)

git remote add origin https://github.com/[your name]/[your project name]
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment