`
Science is the systematic enterprise of gathering knowledge about the universe and organizing and condensing that knowledge into testable laws and theories.
Computer science (CS) spans the range from theory through programming to cutting-edge development of computing solutions.
“(1) The application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software; that is, the application of engineering to software.
(2) The study of approaches as in (1).”
git clone ssh://server.com/reponame git pull git add file git rm file git status git commit -a -m "comment" git push origin master
git pull
before you do anything elsegit add
to add files to the “staging area”.git commit -a -m "..."
to commit the staged files.git push origin master
to update the server..gitignore
to list files that should not be checked in (e.g. Java class files).lab2/report.txt
via Gitgit clone
created and make a new directory lab2
.
cd cs151 # or whatever your repo is named mkdir lab2
lab2/report.txt
and put something into it (like Hello, World!
or whatever).git status
. What do you get? (Paste that into your report.)git add lab2/report.txt
and again git status
. What happens? (Paste that into your report and save the file.)git commit -a -m "Added lab2"
and again git status
. What happens? (Paste that into your report.)git push origin master
and again git status
. What happens? (Paste that into your report.)report.txt
file. Take a screen shot. Add it into the lab2
directory. What do you need to do to make it appear in the web interface? (Put the answer into your report.)lab2
directory.GreeterTester
. What happens?git status
. What happens?.class
files to the repo. Create a file .gitignore
in the base directory of your repo (probably ~/cs151
). Note that the file name starts with a period. Add the line
**/*.classRun
git status
again. What happens? Why?