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

  • SEARCH
  • Home
  • 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 8397299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:45:07+00:00 2026-06-09T20:45:07+00:00

I try push a local repo to github and get such a message: The

  • 0

I try push a local repo to github and get such a message:

The remote end hung up unexpectedly.

ERROR: Permission to [repo_name] denied to [user_name]

But I can’t understand where it finds such a name. I have 2 ones on my local computer but for this repo I had set another name for the project explicitly,

cd project_directory

both,
local:

git config user.name [right_user_name]

and global:

git config --global user.name [right_user_name]

…user name.
But it nevertheless thinks that a real name is [user_name] but not [right_user_name].
Please help me to find the cause of this.

  • 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-06-09T20:45:08+00:00Added an answer on June 9, 2026 at 8:45 pm

    In github, the authentication is solely done using SSH keys. So, whichever SSH key you are sending is used by github to find which account you are associated with, and that’s where “username” comes from.

    The git username is only used when you create new commits. Since a given person can push commits from anybody, it cannot be used by github for access rights (that would not be secure anyway …)

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

Sidebar

Related Questions

I try to push changes from my local repo to a remote repo. When
Possible Duplicate: git push error '[remote rejected] master -> master (branch is currently checked
I'm trying to get my github repo cloned on my live site for the
So I've created a repo using Git Bash, and it works (Local and Remote
What does it mean when you try to push to a Mercurial repository on
What would possibly cause a 'git push' to try and commit to two branches?
try: html = urlopen('http://glbse.com/api/asset/' + asset.name) except: print 'error while updating the price of
(Using Vista)I'm trying to clone an app from my GitHub Repository and push it
I copied my local git repo to my sites folder so that I can
I just added a ton of images to my local git repo. As a

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.