20165305 Suzhenrong "Java programming" the first week of study summary

Source: Internet
Author: User

20165305 "Java program design" the first week to summarize the learning content of learning materials

I focused on the first chapter of the JDK installation, which is a further understanding of some Java basics.

Introduction to the Java platform

Java SE (Java 2 Platform Standard Edition edition)
Java EE (Java 2 Platform Enterprise Edition Corporate Edition)
Java ME (Java 2 Platform Micro Edition mini version)
Four components of Java SE
Jvm:java virtual machines, included in the JRE
Jre:java execution environment, required to run Java programs (including Java SE API,JVM, deployment technology)

Jdk

JDK: Includes jrk and tools needed in the development process, such as Javac, Java and other tool programs, the development of Java programs required. The command-line tool I use is git Bash. Let me focus on git.

git commands

Common Git Commands
Git branch view all local branches
Git Status View current status
Git commit Commit
Git branch-a See all the branches
Git branch-r View all local branches
Git commit-am "Init" to submit and annotate
Git remote add origin
Git push origin master pushes files to the server
Git remote show origin shows the resources in origin
Git push Origin Master:develop
Git push Origin Master:hb-dev associate a local library with a library on the server
git checkout--track origin/dev switch to remote Dev branch
git branch-d master Develop delete local library develop
git checkout-b Dev builds a new local branch dev
Git merge origin/dev Merge branch dev with current branch
git checkout dev switch to local dev branch
Git remote show to view the long-range library
git Add.
git RM file name (including path) removes the specified file from git
git clone pulls the code down from the server
git config--list See all users
Git ls-files look at the already committed
git rm [file name] Delete a file
Git commit-a commits all changes to the current repos
git add [file name] Add a file to git index
Git commit-v you can see the difference in commit when you use the-v argument
Git commit-m "This is the message describing the commit" adds a commit message
Git Commit-a-A represents add, adds all the change to git index and then commits
Git commit-a-V General commit command
git log to see your commit logs
git diff view updates that have not yet been staged
git rm a.a Remove files (removed from staging area and workspaces)
git rm--cached a.a Remove Files (removed from staging area only)
Git commit-m "Remove" Remove files (removed from git)
Git rm-f a.a forcibly remove modified files (removed from staging area and workspaces)
git diff--cached or git diff--staged view the updates that have not yet been submitted
Git stash push to push files to a temporary space
Git stash pop to pop files from scratch space
Git remote add origin
Git push Origin master submits a local project to the server
Git pull local and server-side synchronization
git push (remote warehouse name) (branch name) pushes the local branch to the server.
Git fetch is equivalent to getting the latest version from remote to local, not automatically merge
Git commit-a-M "Log_message" (-A is to commit all changes,-M is to add log information) local modifications are synchronized to the server side:
Git branch branch_0.1 master creates branch_0.1 branch from Master Branch Master
git branch-m branch_0.1 branch_1.0 rename branch_0.1 to branch_1.0
git checkout branch_1.0/master switch to Branch_1.0/master branch
Du-hs
Mkdir
Cd
Git init
Touch README
git add README
Git commit-m ' first commit '
Git remote add origin
Git push-u Origin Master
(Refer to git common command encyclopedia)

Problems encountered in learning process and solutions

In the learning process, the most troubling me is not to go up, and finally modified the user name is good.

Script Run

Code upload

Code Hosting

20165305 Suzhenrong "Java programming" the first week of study summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.