git_introduction
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git_introduction [2018/11/15 00:04] – [git status] tell | git_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: | Before doing anything, sign up with github (create a username and password, and find the Eastbots organization: | ||
| + | |||
| 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:// | + | We found a good windows download here https:// |
| ====== Git basics, Steve' | ====== Git basics, Steve' | ||
| Line 23: | Line 24: | ||
| git clone https:// | git clone https:// | ||
| to put a copy of the pcboards-2018 tree onto your own computer. | to put a copy of the pcboards-2018 tree onto your own computer. | ||
| + | |||
| + | Here's a screenshot showing the complete process. | ||
| + | {{ :: | ||
| ===== git pull ===== | ===== git pull ===== | ||
| The pull command updates your local repository and working copy with new changed made and pushed to the parent repository on github. | The pull command updates your local repository and working copy with new changed made and pushed to the parent repository on github. | ||
| + | |||
| + | Unless you only did your clone seconds ago, someone else on the team may have submitted changes since you cloned. | ||
| + | |||
| + | ===== aside: your first edit ===== | ||
| + | |||
| + | Exercise: | ||
| + | * Clone the Team-4795/ | ||
| + | * find the file gitplay/ | ||
| + | * Using a text editor (like textedit, notepad, emacs, or vim), add one new line to the file that contains at least your name. Do not use word or any other word processor to edit these plain-text files. | ||
| + | |||
| + | These screenshots show what you'll see. Use " | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Some editors will run right in the terminal, others will start up a new window in which they can support | ||
| + | menus and mouse actions. | ||
| + | |||
| + | {{ : | ||
| ===== git status ===== | ===== git status ===== | ||
| Line 33: | Line 55: | ||
| Exercise: | Exercise: | ||
| - | * Clone the Team-4795/ | + | * do the edit shown above, either from the command line or from a graphical file manager |
| - | * find the file gitplay/team-git-practice-file | + | * open a terminal and find the team-git-practice-file |
| - | * Using a text editor (like textedit, notepad, emacs, or vim), add one new line to the file that contains at least your name. Do not use word or any other word processor to edit these plain-text files. | + | * run "'' |
| - | * run "'' | + | |
| Line 83: | Line 104: | ||
| ====== References ====== | ====== References ====== | ||
| + | * https:// | ||
| * official git documentation and tutorial: https:// | * official git documentation and tutorial: https:// | ||
| * another tutorial https:// | * another tutorial https:// | ||
git_introduction.1542258293.txt.gz · Last modified: 2018/11/15 00:04 by tell
