Home > Article > Web Front-end > How to host your own maven project on github
This time I will show you how to host your own Maven project on GitHub, and What are the precautions for hosting your own Maven project on GitHub? The following is a practical case, let's take a look.
installgit and set the user name and email through the git config --global user.name "", and git config --global user.email "" commands ( The username is the github username, and the email address is the github email address)
2. Use ssh to bind git to github
3. Open the idea file->settings->Version Control->GitHub( Select Password for Auth Type and enter your github login email and password. Click test to test whether it is successful. Do not check Clone git Repository using ssh! Finally click OK)
4. Also select git under Version Control to set the path of git.exe. And click test to test whether it is correct and finally click OK.
5. Open VCS->import into Version Control->share Project on GitHub and follow the steps to complete the next steps. In theory, the project can be synchronized to GitHub;
Delete the Repository
on github and then share project on github, the project is already on github pop-up window will appear Solution:
1. Close the idea
2. Open the hidden folder .git under the folder where the project is located, delete the contents of the config file except: [core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
and save it, reopen the idea and repeat the fifth step above. The problem is solved after testing;
Other related articles!
Related reading:Code to determine whether the login is invalid
The above is the detailed content of How to host your own maven project on github. For more information, please follow other related articles on the PHP Chinese website!