Monday, January 30, 2017

How to Use Git and GitHub - Udacity



Some of the references I have been using continue to refer to Git and GitHub, so I searched for a reference to what this is. So far I have been able to learn that these are for file sharing, saving old versions and comparing new versions. I also found out that there is a file compare feature built into Windows Command prompt called "FC". I used it below to compare the two files given in the Udacity example and here is the output:

C:\Users\jenni\Downloads>FC game_old.js game_new.js

Comparing files game_old.js and GAME_NEW.JS
***** game_old.js
KEY_CODES = {
  32: 'space',
***** GAME_NEW.JS
KEY_CODES = {
  13: 'enter',
  32: 'space',
*****

***** game_old.js
  37: 'left',
  38: 'up',
  39: 'right',
***** GAME_NEW.JS
  37: 'left',
  39: 'right',
*****

Notice that it shows differences between the old and new version of the files. This could be very useful.

As recommended by the video, I downloaded Sublime Text Editor and Git. They recommended opening Sublime from Git which was not working for me so I will revisit this later and try to resolve. In the meantime I have more understanding of what Github is used for.

No comments:

Post a Comment