[Python] I'm getting an error while Trying to push in my github

Discussão em 'Python' iniciado por Stack, Agosto 15, 2025.

  1. Stack

    Stack Membro Participativo

    I attempted to clone a Git repository, which contains the main 'master' branch. Additionally, I created a new branch named 'feature1' within the same repository. Upon switching from the 'master' branch to the 'feature1' branch, I implemented a set of new features. Following the completion of these changes, I performed the following actions:

    git add .
    git commit -m "my_message"


    this is what i get by doing:-

    git remote -v


    origin https://github.com/raghavpain/simplepractice.git (fetch)
    origin https://github.com/raghavpain/simplepractice.git (push)


    but when i'm trying to push my change by doing this :-

    git push origin feature1


    i'm getting this error :-

    mohit@mohit:~/okk/git_check/simplepractice$ git push origin feature1
    Enumerating objects: 4, done.
    Counting objects: 100% (4/4), done.
    Delta compression using up to 2 threads
    Compressing objects: 100% (3/3), done.
    Writing objects: 100% (3/3), 335 bytes | 335.00 KiB/s, done.
    Total 3 (delta 1), reused 0 (delta 0)
    remote: Resolving deltas: 100% (1/1), completed with 1 local object.
    To https://github.com/raghavpain/simplepractice.git
    ! [remote rejected] feature1 -> feature1 (permission denied)
    error: failed to push some refs to 'https://github.com/raghavpain/simplepractice.git'

    Continue reading...

Compartilhe esta Página