Difference between revisions of "Getting Started w/ Github"

From AstroBaki
Jump to navigationJump to search
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
 
+
[[Revision Control]]
  
 
== Creating a Github Repository ==
 
== Creating a Github Repository ==
Line 7: Line 7:
 
* [https://www.youtube.com/watch?v=SwK2dPFXhpU How to Install and Configure Git and Repositories on GitHub]
 
* [https://www.youtube.com/watch?v=SwK2dPFXhpU How to Install and Configure Git and Repositories on GitHub]
  
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 [https://github.com/ github.com] and log-in using an email. Github has special benefits for students so if possible, use your school email.
+
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 [https://github.com/ github.com] 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:
 +
<source lang="bash">
 +
git config --global user.name "John Doe"
 +
git config --global user.email johndoe@example.com
 +
</source>
  
 
<source lang="bash">
 
<source lang="bash">
Line 14: Line 18:
  
 
== Adding Code/Data ==
 
== Adding Code/Data ==
<source lang="bash">
+
 
git config --global user.name "John Doe"
 
git config --global user.email johndoe@example.com
 
</source>
 
  
  

Revision as of 11:22, 26 January 2021

Introduction

Revision Control

Creating a Github Repository

Links:

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 github.com 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 user.name "John Doe"
git config --global user.email johndoe@example.com
git help {command}

Adding Code/Data

git add {file}

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

git add .