In WebStorm in use Git

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_38789941/article/details/102742267

First, the initial submission of project

1. Create a project to build on the company's gitblit service, and then generates the address of the git project.

2, on the local computer, open webstorm, you want to upload to the existing code gitblit service, you need a command window in the terminal webstrom editor, enter the command:

git initialize the init program (internally generates .git folder)
git remote add xxx https: //xxx.xxx.git set git remote repository, the last two parameters, one is the name of the branch; url address is a project you created in the git site

If this folder there are exclusions, then add a file to .gitignore not need to upload files to ignore, such as:

.DS_Store
node_modules
dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
test/unit/coverage
test/e2e/reports
selenium-debug.log

# Editor directories and files
.idea
.vscode
package-lock.json

3. Then webstorm you can see the git commit or push the related options 

Click Commit, this project has been uploaded to the local repository.

Subsequently to push the end git

Well, the end git version exists. 

 

Two, clone project

1, just upload the project clone down

Guess you like

Origin blog.csdn.net/qq_38789941/article/details/102742267