NOTES
2018-01-16
slide deck launches on Feb 21.
- git --version
- git config user.name
- git config global user.email
- git init exercise-1
- touch README.md
- git status
- git add README.md
- git status
- git commit -m "my special commit message"1.
- git status
- git status
- edit README2.md
- save README2.md
- git status
- git diff
- git add README2.md
- git diff --staged
- git log
- touch slides-1.html
- touch slides-2.html
- git reset slides-2.html
- edit slides-1.html
- git status (reports different stages of slides-1.html)
- git commit -m "add html to slides1.html"
- git status
- git add slides-1.html
- git commit -m "fixed html"
- git status
- working directory
- staging area
- repository
- Repository: an entire history of projects
- one repository per student / per assigment
- .git :: the whole project lives in here consisting of compressed files
metaphor is of a writer's desk with a:
- workspace
- file staging area
- published file storage area
job of the staging area is to bridge the gap between the working space and the project history. git users should work towards a meaningful commit.
- git add :: to stage changes between drafts
moving to GitHub
-
Dr. Root with a class of vegatables
-
git remote add <<origin>> (REPO LOCATION)
-
git remote
-
git remote add
- git remote add mirror-dvs https://github.com/data-and-visualization/ mozadrella-test.git
-
git remote
-
git push -u mirror-dvs master
- u stands for upstream
- go into the mirror-dvs settings
- add collaborator
- then ...
-
git remote -v
NOTE the -u will identify the default remote
- git show master
https://education.github.com/pack https://githubcampus.expert https://internships.github.com