Phpstorm and other jetbrains software git cannot push problem resolution

Source: Internet
Author: User
Tags using git

Problem:

We use Git, and if we don't use key, each push will require a user password. I'm also used to using git in the process of using phpstorm software. However, git push is reported as error:

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M02/7D/0B/wKiom1be-r6AUODcAAA4UtVodqE934.png" height= "183" />

Found:

We all know that under Linux, the default public private key generation is saved in the ~/.ssh/folder, but under Win, I use the git version:

650) this.width=650, "title=" [u[l~ (5_h ' 6~_e)) 6FWULKB "style=" border-top:0px;border-right:0px;border-bottom:0px; border-left:0px, "border=" 0 "alt=" [u[l~ (5_h ' 6~_e)) 6FWULKB "src=" http://s3.51cto.com/wyfs02/M02/7D/0A/ Wkiol1be-0csi90baaal_w6nq5q617.jpg "height="/>

After the default installation, with these 3 tools, Git bash is like a Linux Bash command-line tool, git cmd, the command-line tool that is the cmd form of win, GUI, is the graphical interface, but very simple.

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M00/7D/0B/wKiom1be-r-QsXC6AAAgrYlI7vc683.png" height= "151" />

But with the GUI turned on, we found that there were ssh-key details.

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M01/7D/0B/wKiom1be-r_DGbGpAAB6URVtPns884.png" height= "235" />

Click Generate key to generate the key, the path is "~/.ssh/id_rsa.pub-----This is not the same path as Linux ...

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M01/7D/0A/wKioL1be-0LjWCxOAAA2UY6A0Lg790.png" height= "355" />

Ideas:

That knows the path is good, we can use their own key (already added in Git.oschina.net), press the public key file name, replace it.

1, first find win under ~/.ssh path where. We can use the Git-bash tool.

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M01/7D/0A/wKioL1be-0KxtXFTAAEuWotiG3E232.png" height= "343" />

2, output home directory found key file

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M02/7D/0B/wKiom1be-sHC5A7gAABfaVSFXug439.png" height= "333" />

3. Replace the public private key you already have with the push operation again

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M02/7D/0A/wKioL1be-0PT6iewAAAe257Db_g312.png" height= "148" />

Click Yes and enter your password to see the success.

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M00/7D/0B/wKiom1be-sKRLs01AAEE_uet1WA969.png" height= "174" />


Results:

Problem solved successfully.

Phpstorm and other jetbrains software git cannot push problem resolution

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.