Git Product home page Git Product logo

Comments (25)

huyong007 avatar huyong007 commented on May 22, 2024 115

first>git pull...
then>git push...

from patchwork.

jlord avatar jlord commented on May 22, 2024 83

When you get a 403 on this challenge it is because you are trying to push your changes to a repository you don't have access to i.e. my original one jlord/patchwork.

I'm going to update the app soon to make it more clear since this is catching quite a few people.

To see what your remotes are you can run:

git remote -v

You should have an origin that points to the copy (fork) on your GitHub account and one named upstream that points to my original jlord/patchwork. You can only pull from upstream, not push.

It seems like people are either pushing to upstream or have set the URL to origin incorrectly.

You can update your origin remote url by running:

git remote set-url origin <urltoyourfork>

from patchwork.

pmndifon avatar pmndifon commented on May 22, 2024 45

SOLVED HERE! https://stackoverflow.com/questions/15381198/remove-credentials-from-git

from patchwork.

mirkolgt avatar mirkolgt commented on May 22, 2024 40

I have the same problem. I think though is driven by the fact that I "logged" in with a different account. How do I sign out and back in with the "correct" Github account from terminal?
Thanks!

from patchwork.

satheesh-mallow avatar satheesh-mallow commented on May 22, 2024 24

I too have an same problem. Where am using the same account but in different mac.

While pushing to orgin from my office it throwing an error.

remote: Permission to satheeshmech/satheesh.git denied to SwathiVishwa. fatal: unable to access 'https://github.com/satheeshmech/satheesh.git/': The requested URL returned error: 403

from patchwork.

vadivelanproz avatar vadivelanproz commented on May 22, 2024 4

pushing to remote orgin it throwing an error
fatal: unable to access 'https://github.com/demo.git/': The requested URL returned error: 403

from patchwork.

jlord avatar jlord commented on May 22, 2024

It's unclear what you're referring to here, could you elaborate please?

from patchwork.

dbwebconsulting avatar dbwebconsulting commented on May 22, 2024

I am getting the same error when I try to do the 'Branches Aren't Just For Birds' step in Git-it. I'm trying to do a push to the contributors directory. IE: git push origin add-dbwebconsulting. I'm on a pc, win 7. 64bit. My git config origin url is: url = https://github.com/jlord/patchwork.git/. I am getting the following error:
Found branch as expected!
Error: Command failed: "H:\UserFiles\Web-stuff\Git-it-win32-ia32\resources\app\assets\PortableGit\bin\git.exe " reflog show origin/add-dbwebconsulting fatal: ambiguous argument 'origin/add-dbwebconsulting': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'

from patchwork.

danweinstock avatar danweinstock commented on May 22, 2024

I'm having the same issue working on a Mac. I feel I have a pretty good sense of git but not sure what the problem is.

from patchwork.

dbwebconsulting avatar dbwebconsulting commented on May 22, 2024

Thanks for the clarification.

from patchwork.

csvhub avatar csvhub commented on May 22, 2024

I have a same problem. When I commit and push to remote it throwing an error " Permission to hpcity/hoangsa-library.git denied to TruongVanHa."
How to fix it?

from patchwork.

Silatibebe avatar Silatibebe commented on May 22, 2024

i have same issue
/workspace/hello-world/patchwork (gh-pages) $ git push origin mypatch_test
remote: Permission to jlord/patchwork.git denied to Silatibebe
fatal: unable to access 'https://github.com/jlord/patchwork.git/': The requested URL returned error: 403

from patchwork.

kosemani2 avatar kosemani2 commented on May 22, 2024

I have the same error, though it seems I typed a wrong password. I thought I should be prompted to re-enter my password each time try to push changes to my origin via bash. But I keep getting the same error over and over. Kindly help with a way out anybody?

remote: Permission to kosemani2/gitlearning.git denied to kosemani1.
fatal: unable to access 'https://github.com/kosemani2/gitlearning.git/': The requested URL returned error: 403

from patchwork.

sravanpsk avatar sravanpsk commented on May 22, 2024

from patchwork.

shivkg avatar shivkg commented on May 22, 2024

thanks i have resolved

from patchwork.

nacongodev avatar nacongodev commented on May 22, 2024

clone from a fork project instead of the master project

from patchwork.

jeanmonse16 avatar jeanmonse16 commented on May 22, 2024

@jlord thank you for your explanation !! it was exactly what was happening to me

from patchwork.

ALI-SAMPSON avatar ALI-SAMPSON commented on May 22, 2024

I solved this error after the leader of the group in which i was contributing sent me an invitation to join as a collaborator. Hence if you are collaborating in a group and you encounter the same issue then please alert your leader to send you an invitation. Hope it helps!

from patchwork.

NandoRosero avatar NandoRosero commented on May 22, 2024

Saludos, tengo el mismo problema:

$ git push -u origin develop
remote: Permission to landetaedwin/sitp-app.git denied to NandoRosero.
fatal: unable to access 'https://github.com/landetaedwin/sitp-app.git/': The requested URL returned error: 403

from patchwork.

Kumarbek9292 avatar Kumarbek9292 commented on May 22, 2024

remote: Permission to Kamil-Esh/our-project-fixed.git denied to Kumarbek9292.
fatal: unable to access 'https://github.com/Kamil-Esh/our-project-fixed/': The requested URL returned error: 403

from patchwork.

sandeep8854 avatar sandeep8854 commented on May 22, 2024

hi hello..
some problem
remote: Permission to sandeep8854/FirstGitHubCommandLineProj.git denied to Kuldeep8853.
fatal: unable to access 'https://github.com/sandeep8854/FirstGitHubCommandLineProj.git/': The requested URL returned error: 403

from patchwork.

adilshehzad786 avatar adilshehzad786 commented on May 22, 2024

This command works for me
git push -u origin main --force

i am using main as my branch You can change with respective to your branch

from patchwork.

surajsgh avatar surajsgh commented on May 22, 2024

First, Delete your generic credentials (Google it!) and after that run the command 'git push -u origin main'.
You'll see a popup that'll ask you to connect the browser to your github account or something like that.
After that run the following commands:
git pull
git push -u origin main.

from patchwork.

Rakib221 avatar Rakib221 commented on May 22, 2024

remote: Permission to rakib221PS/somePorblemSolving.git denied to Rakib221.
fatal: unable to access 'https://github.com/rakib221PS/somePorblemSolving.git/': The requested URL returned error: 403

I have 2 git hub account. That's why this problem has happened. Please help me.

from patchwork.

raushan6760 avatar raushan6760 commented on May 22, 2024

hey i faced same problem but this problem appear when you use two account, so remove one account. watch this video to remove https://youtu.be/b5CQ6XdEGxg account after that you can fresh sign in. i hope it will help you a lot

from patchwork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.