Git push: Enter the user name for each commit. gitpush

Source: Internet
Author: User

Git push: Enter the user name for each commit. gitpush
Preface

After the Code has recently been transferred from csdn to gitee, the user name and password are required for every git push. This is troublesome. Is there a way to remove this step?

Cause

You need to enter the user name and password every time because you use https to submit code, if the ssh mode is used, you only need to add the user's sha key to the version library to implement submission without entering the user name and password.

Solution
Git remote-vgit remote rm origingit remote add origin git@gitee.com: username/repository. gitgit push-u origin master
Reference

Related Article

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.