User Tools

Site Tools


git_introduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git_introduction [2018/11/15 15:51] tellgit_introduction [2018/11/16 16:47] (current) ilena
Line 6: Line 6:
  
 Before doing anything, sign up with github (create a username and password, and find the Eastbots organization: https://github.com/Team-4795. Before doing anything, sign up with github (create a username and password, and find the Eastbots organization: https://github.com/Team-4795.
 +
 Once you have a github account, Amr, Steve, or Ilena can add you to the Eastbots organization in github. Once you have a github account, Amr, Steve, or Ilena can add you to the Eastbots organization in github.
  
Line 11: Line 12:
  
 If you're using linux, git should be available easily with the software package manager in your linux system. If you're using linux, git should be available easily with the software package manager in your linux system.
-We found a good windows download here https://git-scm.com/download/win  (Ilena, is this the one we put on yoru computer?)+We found a good windows download here https://git-scm.com/download/win  
  
 ====== Git basics, Steve's version ====== ====== Git basics, Steve's version ======
Line 26: Line 27:
 Here's a screenshot showing the complete process.  We change into a folder (directory) that already exists called Eastbots, and run "ls" only to find that it is an empty folder.  Then we do the clone, and ls again.  We see that a new directory called pcboards-2018 has been created. Here's a screenshot showing the complete process.  We change into a folder (directory) that already exists called Eastbots, and run "ls" only to find that it is an empty folder.  Then we do the clone, and ls again.  We see that a new directory called pcboards-2018 has been created.
 {{ ::git-clone-pcboards.png?400 |}} {{ ::git-clone-pcboards.png?400 |}}
 +
 +===== git pull =====
 +The pull command updates your local repository and working copy with new changed made and pushed to the parent repository on github.  Simply type "''git pull''"
 +
 +Unless you only did your clone seconds ago, someone else on the team may have submitted changes since you cloned.  Run ''git pull'' early and often to stay up to date!
  
 ===== aside: your first edit ===== ===== aside: your first edit =====
Line 43: Line 49:
 {{ :git-editfile-emacs.png?300 |}} {{ :git-editfile-emacs.png?300 |}}
  
-===== git pull ===== 
-The pull command updates your local repository and working copy with new changed made and pushed to the parent repository on github.  Simply type "''git pull''" 
- 
-Unless you only did your clone seconds ago, someone else on the team may have submitted changes since you cloned.  Run ''git pull'' early and often to stay up to date! 
 ===== git status ===== ===== git status =====
 Git status shows what you've done in your working copy, listing files that have been changed or created. Git status shows what you've done in your working copy, listing files that have been changed or created.
Line 102: Line 104:
  
 ====== References ====== ====== References ======
 +  * https://www.youtube.com/watch?v=boeCjJKg-LY&t=0s&list=PLUSdSy9CkwBIiISFMa_ThWmtFCKtYLUE_&index=6 - Eastbots programming video focusing on git 
   * official git documentation and tutorial: https://git-scm.com/book/en/v2/Getting-Started-Git-Basics   * official git documentation and tutorial: https://git-scm.com/book/en/v2/Getting-Started-Git-Basics
   * another tutorial https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners   * another tutorial https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners
  
git_introduction.1542315087.txt.gz · Last modified: 2018/11/15 15:51 by tell