GIT use homework


Goal: Everyone will pull down the files, including the pepper file I seeded in the origin branch, into  their own local git repository master branch. Everyone will both add a file and change the pepper file in the repository by pulling down the repository to their local system, making changes, staging, committing and pushing the changes back up to the repository. You can use any tool you like, but I am giving you the commands necessary to use a command interface such as git_bash.

Assignment: Everyone will add 1 new file with their own name as the filename, and will change the woo.txt. Add a line with your name in woo.txt. Also, add a new file with your name as the filename. See how it merges your changes into the repository. If you can work with a partner, you can make changes at the same time and create and resolve into conflicts, which is great.

Here are our class repositories, and below is the one to use for this homework. Please use your own username in place of user_name:

ssh://username@panther.adelphi.edu/opt/git/pepper/csc440Fall15/csc440Fall15A.git

Suggested steps (tailored for pc but can be run on a mac):
  1. Create a folder called myprogram to hold your code.  (any name is fine)
  2. Download git from http://git-scm.com/downloads
  3. Introduce yourself to the git on your machine:
  4. Get to the folder that will hold your code
  5. Clone your repository:
  6. move into the repository
  7. Leave gitbash open and also open windows explorer
  8. In windows explorer (or eclipse), add one file with your name and also change the woo.txt in some way.
  9. Go back to gitbash
  10. add all files in the folder using git add .
  11. commit all files in the folder using git commit -m "your name and description of your changes"
  12. put the files on the repository using git push
  13. If someone else has made changes, you will see an error that your changes were rejected.

A bit more if you want

  1. Make one more change and commit it but do not push it.
  2. in class, verify other people made changes first
  3. try to push your change and you will definitely get the push error, so you can fetch and merge and see the merge do a good job.

Guides:
http://git-scm.com/doc

http://git.racket-lang.org/intro.html