Getting Started w/ Github

From AstroBaki
Jump to navigationJump to search


Revision Control

Creating a Github Repository


If you don't have a github account that's where you'll need to start. You can get started setting up your account by going to and log-in using an email. Github has special benefits for students so if possible, use your school email. Once you've set up an account, in the terminal type the following commands:

git config --global "John Doe"
git config --global


Creating a Repository

Start by moving into the directory that you would like to connect to github. Next, run the following command to create a git repository:

git init

Once you've initialized your repository, add files by using:

git add {file}

or if you want to add all of the files in a directory you can use the following command:

git add .