Skip to content

Instantly share code, notes, and snippets.

@JEduardoRJx
Created March 26, 2019 23:05
Show Gist options
  • Save JEduardoRJx/0d90b9b90ac621b20446150e403b1e2b to your computer and use it in GitHub Desktop.
Save JEduardoRJx/0d90b9b90ac621b20446150e403b1e2b to your computer and use it in GitHub Desktop.
Begginers Guide to Git

Beginners Guide to Git

A simple guide to get started with git

Git Logo

  1. Creating a new repository
  • create a new directory using mkdir [directory name]
  • change into directory using `cd [directory name]
  • perform git init to create a new git repository
  1. Adding
  • propose changes by using git add <filename>
  1. Commiting
  • To commit the changes you added use git commit -m "[description message]
  1. Pushing
  • To push your local copy gust git remote add origin <server>

Commands in order

mkdir [directory name]
cd directory
git init
git add <filename>
git commit -m "[description message]
git remote add origin <server>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment