one Install the Git client
Install git client under Window.
two Configure Git/ GitHub in Intellij idea
Open Preference– Version Control.
Drop down and select Github, fill in Host, Login, and Password, and Test was successful.
Select Git and specify the Git path. Test to see if the function is working.
Install git client under Window.
two Configure Git/ GitHub in Intellij idea
Open Preference– Version Control.
Drop down and select Github, fill in Host, Login, and Password, and Test was successful.
Select Git and specify the Git path. Test to see if the function is working.
3. Project local Git commit
1. Create a local warehouse
2. Commit code to Git
Right-click on the SRC or code file, and Git — Add — Commit
Four. Project remote submission
1. Set up a warehouse on Github
2. Configure the remote warehouse locally
CD local warehouse directory
Git RemoteAdd Origin the address of your project
git push-u origin master
There’s going to be a problem here.
The reason is that when we created the warehouse on Github, we checked the default READme.md, which caused a mismatch between local and remote warehousing.
Solutions:
The Git pull origin master
And then git push-u Origin master
3. Push/Pull in IDEA
Right-click on the SRC or code file, Git — Repository — Push/Pull
Read More:
- When local git connects to github: PTY allocation request failed on channel 0
- Upgrade to IntelliJ idea 2021.2 and start the project with an error
- How to solve error: failed to push some refs to ‘[email protected]:……git pull conflict
- Idea can’t submit code to GitHub when using git — too much code / file leads to submission failure
- How can IntelliJ idea completely delete a project
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- GitHub upload failed: git push error: failed to push some refs to exception handling
- Solve the problem that target code version of Maven project sub module in IntelliJ idea is always rolled back
- Android studio push project to GitHub
- Application of IntelliJ idea in Maven project pom.xml Add dependency
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
- Git clone appears fatal: unable to access’ https://github.com/… The solution to the problem
- Idea submits code to git / code cloud warehouse for the first time
- Idea | change the default configuration of idea to open a new project
- Error in publishing project with Maven in idea. Git directory is not found! Please specify a valid
- [error] error handling of IntelliJ idea
- [Git] git pull pull remote git push to remote git commit submit reject
- Solve the error of POM file failed to read artifact descriptor for XXX under IntelliJ idea