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 9243855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:54:03+00:00 2026-06-18T08:54:03+00:00

I want to add a file into github as follow: git init touch test.txt

  • 0

I want to add a file into github as follow:

git init
touch test.txt
git add test.tst
git cmmit -m'testtest'
git push origin master

then it will raise this exception:

error: The requested URL returned error: 403 while accessing https://github.com/yacheng1127/YWProject.git/info/refs

fatal: HTTP request failed

then I verify the public key is attached to my github account:

$ ssh -T git@github.com
Hi yacheng1127! You've successfully authenticated, but GitHub does not provide shell access.

$ ssh-add -l
2048 1a:a1:33:26:21:68:7e:9c:26:19:fb:74:a4:d1:6b:bd yacheng1127@gmail.com (RSA)

then I check my remote url:

$ git remote -vorigin   
origin      https://github.com/yacheng1127/YWProject.git (fetch)
origin  https://github.com/yacheng1127/YWProject.git (push)

I don’t know where is the problem. could somebody help me? thank you

  • 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-18T08:54:04+00:00Added an answer on June 18, 2026 at 8:54 am

    Use ssh key is used when you use the “git://” url for your remote, you can change this (https://help.github.com/articles/changing-a-remote-s-url).

    But “https://” should work too (read/write), but it can’t use your ssh key nor ssh agent, you should give git your github login and password :

    https://help.github.com/articles/set-up-git#password-caching

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

Sidebar

Related Questions

I want to add dll file into my project. But i don't know where
I want to add some more library and helpers file into Pyrocms which is
I want to use echo to add data into a text file progressively. I
This batch file releases a build from TEST to LIVE. I want to add
I want to add a C file into my .NET application. How can I
I want to add one HTML file into another. For example: I have header.html
I want to add a .java file into my project. But this .java has
If I want to add external javascript file into an aspx page in back
I want to add an image file into json object . Is it possible
I unpacked a zip-file delivery into a clearcase view. Now I want to add

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.