1 / 29

Piazza

Piazza. Piazza: https ://piazza.com/uchicago/summer2014/mpcs51037/home  Course website: http://java-class.cs.uchicago.edu/adv/. Lecture 02 Agenda: 1/ intro 2 / bitBucket register 3 / setup dev environment JDK, maven, git , sourcetree , p4merge, netBeans 8, glassfish

zarifa
Download Presentation

Piazza

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Piazza • Piazza: • https://piazza.com/uchicago/summer2014/mpcs51037/home  • Course website: • http://java-class.cs.uchicago.edu/adv/

  2. Lecture 02 Agenda: 1/ intro • 2/ bitBucket register 3/ setup dev environment JDK, maven, git, sourcetree, p4merge, netBeans 8, glassfish 4/ intro to maven, netbeans, & git

  3. Registering Bitbucket account Remote source-control: http://java-class.cs.uchicago.edu/adv/

  4. Pass by value and reference

  5. pass by value pass by reference Action: Tell my accountant how much I intend to spend on a new car. Change in bank account: no change. Action: Swipe debit card and enter pin at the Bently dealership. Change in bank account: -125k.

  6. If a tree falls in a forest and no one is around to hear it, does it make a sound?

  7. Event-Source (Button) No Event-Listener listening Event (onClick) No Catcher No Event Listener

  8. OnClick-Listener Event-Listener listening Event-Source (Button) Event (onClick) Any Object Catcher ready to catch

  9. Wrong Event

  10. Event source not registered

  11. OnClick-Listener OnMouse-Listener Event-Listener listening Event-Source (Button) Event (onClick) Any Object Event (onMouse) Catcher ready to catch

  12. Fork-and-Clone projects

  13. Clone Labs

  14. GIT architecture

  15. gitconfig --global user.name "Your Name" gitconfig --global user.email "your_email@whatever.com"

  16. add/reset/commit: move files from working-dir to stage-dir(aka index) git add . git add src/. git add src/lec01/glab/DigitalToBinary.java move files from stage-dir(aka index) to working-dir git reset HEAD . git reset head src/. git reset head src/lec01/glab/DigitalToBinary.java git commit -m “your commit message.”

  17. Amending: Every commit is associated with a sha-1 hash. That hash is derived from 1/ the file changes in that commit and 2/ the previous commit. You can not change any commit unless that commit is at the head. Since no other commits depend on the head, you may safely change the head. To change the head, use git commit --amend -m “your message” git commit --amend --no-edit

  18. Reverting: You can roll back a commit (reverse it) by identifying it's sha1 hash like so. git revert --no-edit 71ac

  19. Branching: To list the branches in a project: git branch git branch -r git branch --all To create a branch: git checkout -b branchName c39b git checkout -b branchName To delete a branch: git branch -D branchName To checkout a branch: git checkout 7afe git checkout master

  20. Pushing to remotes: To see the remotes: git remote -v show To push to a remote: git push origin master:master git push origin master git push --all

  21. Pulling from remotes: To see the remotes: git remote -v show To pull from a remote: git pull --all git pull origin eval

  22. NetBeanskeymap

More Related