Added git commands reference to README

This commit is contained in:
William Brawner 2016-11-29 12:05:05 -06:00
parent f43515647c
commit 8f7e9fbf26

View file

@ -27,3 +27,39 @@ A simple game where the computer picks a number and the player must guess what i
* Spectator: play with two AIs
* Menu: select between different game modes
* Build a GUI
## Contribution
Add the files you changed:
```
git add ngg.php
```
Commit the new changes:
```
git commit -m "Fixed syntax error"
```
Push the changes
```
git push
```
Get the latest code
```
git pull
```
See the changes you've made since your last commit (press Q to exit if it's long enough to scroll)
```
git diff
```
See which branch you're on now
```
git branch
```
Switch to a different branch to see that language's work:
```
git checkout php
```