Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6957113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:57:28+00:00 2026-05-27T14:57:28+00:00

I git push my work to a remote Git repository. Every push will prompt

  • 0

I git push my work to a remote Git repository.

Every push will prompt me to input username and password. I would like to avoid it for every push, but how to configure to avoid it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:57:28+00:00Added an answer on May 27, 2026 at 2:57 pm

    1. Generate an SSH key

    Linux/Mac

    Open terminal to create ssh keys:

    cd ~                 #Your home directory
    ssh-keygen -t rsa    #Press enter for all values
    

    For Windows

    (Only works if the commit program is capable of using certificates/private & public ssh keys)

    1. Use Putty Gen to generate a key
    2. Export the key as an open SSH key

    Here is a walkthrough on putty gen for the above steps

    2. Associate the SSH key with the remote repository

    This step varies, depending on how your remote is set up.

    • If it is a GitHub repository and you have administrative privileges, go to settings and click ‘add SSH key’. Copy the contents of your ~/.ssh/id_rsa.pub into the field labeled ‘Key’.

    • If your repository is administered by somebody else, give the administrator your id_rsa.pub.

    • If your remote repository is administered by your, you can use this command for example:

      scp ~/.ssh/id_rsa.pub YOUR_USER@YOUR_IP:~/.ssh/authorized_keys/id_rsa.pub

    3. Set your remote URL to a form that supports SSH 1

    If you have done the steps above and are still getting the password prompt, make sure your repo URL is in the form

    git+ssh://git@github.com/username/reponame.git
    

    as opposed to

    https://github.com/username/reponame.git
    

    To see your repo URL, run:

    git remote show origin
    

    You can change the URL with:

    git remote set-url origin git+ssh://git@github.com/username/reponame.git
    

    [1] This section incorporates the answer from Eric P

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've done something like following: (1) clone a remote git repository to local host
I'd like to get a local GIT repository in sync with both a remote
When I attempt to push to my heroku.com remote git repository, i get this
Basically I wanted to do something like git push mybranch to repo1, repo2, repo3
What would possibly cause a 'git push' to try and commit to two branches?
The command to remove a remote branch in git is the following git push
I am just starting out with GIT (i'm coming from cvs) and would like
Possible Duplicate: git push error '[remote rejected] master -> master (branch is currently checked
I have a project hosted on GitHub and I would like to work locally
I've setup my environment so I can push to a remote bare repository. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.