E-Commerce Website Development Note Record (-) project initialization

Source: Internet
Author: User
Tags using git

Create a new Maven-achetype-webapp project, build a complete base directory, and then configure Tomcat, introduced in the deployment artifact, the first time found no artifact, Maybe the module is not initialized Well, then did not have it. Maven dependency import changes, do not know the default WebApp template will automatically introduce the initial dependency, the second time when the import changes, after deployment Add artifact success, and then start Tomcat successfully.

2. In order to better manage the project, using Git, first initialize, first build a. gitignore file

. gitignore File Contents

*.class

#package file

*.war
*.ear

#kdiff3 Ignore
*.orig

#maven Ignore
target/

#eclipse Ignore
. settings/
. Project
. classpatch

#idea
. idea/
/idea/
*.ipr
*.iml
*.iws

# temp File

*.log
*.cache
*.diff
*.patch
*.tmp

# system Ignore
. Ds_store
Thumbs.db

After configuring Git init, look at git status, then add the file to git Add., in the commit to the local repository git commit, in the Add remote repository: Git remote add orgin {git address}, if prompted remote repository already exists, use Git Remote RM origin To delete the repository, using Git remote add orgin{git address} to establish a remote repository, see: 50381432, after the completion of the establishment, the local warehouse files to the remote repository to see the current local branch git branch, For master, push to remote branch, execute GIT push-u Origin master, the first failure, follow the prompts with git pull in executing Git push-u origin master, still prompt failed, failure reason:, prompt the current branch behind the remote branch , guess the reason for the current local branch settling time after the remote branch, using the force push git push-u-F Origin master, after the push succeeds, the new version branch

Complete!

E-Commerce Website Development Note Record (-) project initialization

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.