problems pushing my local repository to by remote GitHub #45698
-
Hello, " You don't have write access to 20230118ATMUnitTesting. Want to create a fork? I do not want to create a fork, and I do wish to commit to main: |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 4 replies
-
You can do the following things1. check you have read-write permission or not
2. Initialize git repo in local folder and Push using git
3. Alternatively you can upload the files manually using the "Add file" option in your git repositoryYou can also check these sites |
Beta Was this translation helpful? Give feedback.
-
This sounds like you're not allowed to push to the repository on GitHub that you're trying to push to. However, you should always have write access to your own repository. So I guess you're either logged in as the wrong user, or pushing the wrong repository (maybe because you cloned from somewhere else, and that URL is still configured?). 🤔 I'm not sure how to check either of those in GitHub Desktop, on the command line you can check the remote repositories with |
Beta Was this translation helpful? Give feedback.
-
Does not look like you have correct permissions. |
Beta Was this translation helpful? Give feedback.
-
This is a security feature built into GitHub to prevent unauthorized changes to the codebase. Ensure you are logged into GitHub Desktop with the correct account with write access to the repository. Try creating a new branch in your local storage and pushing the changes to the new branch instead of the main one. Once the changes are on the new branch, you can create a pull request to merge them into the main branch. On a side note, the benefits of Agile Software Testing go beyond just having an agile test environment. Agile methodologies can improve collaboration, increase efficiency, and produce higher-quality software overall. |
Beta Was this translation helpful? Give feedback.
-
100% you can push file to github. https://www.youtube.com/watch?v=V8WbIERFOJU |
Beta Was this translation helpful? Give feedback.
-
I have enabled the read write permission but still getting error:- I have created PAT also did wverything I can but fail to push my clone repo's. |
Beta Was this translation helpful? Give feedback.
-
Hi surjendu,
It worked for me thanks for your help.
Regards
Jai Srivastava
…On Sat, May 18, 2024, 20:13 1234Adithy ***@***.***> wrote:
I tried the same methos i can't able to push
[image: Uploading Screenshot 2024-05-18 200023.png…]
—
Reply to this email directly, view it on GitHub
<#45698 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIBXGETFMY7PBCOMMT6LUE3ZC5SHVAVCNFSM6AAAAAAUKEZCY2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TINZZHAZTO>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hey there! Thank you for reaching out to the GitHub Community with your issue regarding pushing your local repository to your remote GitHub repository. This is a common problem that many users face, especially when they are new to Git and GitHub. Based on the information you've provided, the error message "You don't have write access to 20230118ATMUnitTesting. Want to create a fork? commit to main" suggests that your local repository is not properly authenticated or authorized to push changes to the remote repository on GitHub. This issue typically arises when the local repository is not correctly linked to the remote repository on GitHub or when you don't have the necessary permissions to push changes to the remote repository. Here are a few steps you can try to resolve the issue:
This command will show you the remote URLs associated with your local repository. Ensure that the URL matches your GitHub repository URL (https://github.com/FlashJackFromGungagai/20230118ATMUnitTesting.git).
After trying these steps, you should be able to push your local repository to the remote GitHub repository without any issues. If you're still facing problems, feel free to provide more details, such as the output of the Happy coding! 🚀 |
Beta Was this translation helpful? Give feedback.
-
Hi Community/Community,
I am not getting manage access in github
…On Sat, May 18, 2024 at 10:20 PM Aayush D.C Dangi ***@***.***> wrote:
Hey there!
Thank you for reaching out to the GitHub Community with your issue
regarding pushing your local repository to your remote GitHub repository.
This is a common problem that many users face, especially when they are new
to Git and GitHub.
Based on the information you've provided, the error message "You don't
have write access to 20230118ATMUnitTesting. Want to create a fork? commit
to main" suggests that your local repository is not properly authenticated
or authorized to push changes to the remote repository on GitHub.
This issue typically arises when the local repository is not correctly
linked to the remote repository on GitHub or when you don't have the
necessary permissions to push changes to the remote repository.
Here are a few steps you can try to resolve the issue:
1.
*Verify Remote Repository URL*: Make sure that your local repository
is correctly configured to point to the remote repository on GitHub. You
can check the remote URL by running the following command in your terminal
(or Git Bash on Windows):
git remote -v
This command will show you the remote URLs associated with your local
repository. Ensure that the URL matches your GitHub repository URL (
https://github.com/FlashJackFromGungagai/20230118ATMUnitTesting.git).
2.
*Check Repository Permissions*: Since the repository is public, you
should have write access to it by default. However, it's a good idea to
double-check the repository settings on GitHub to ensure that you have the
necessary permissions.
- Go to your GitHub repository (
https://github.com/FlashJackFromGungagai/20230118ATMUnitTesting)
- Click on the "Settings" tab
- Scroll down to the "Manage access" section
- Ensure that your GitHub account is listed with the appropriate
permissions (admin, write, or maintain access)
3.
*Authenticate with GitHub*: If the above steps don't resolve the
issue, you may need to authenticate your local repository with your GitHub
account. You can do this by following these steps:
-
Open a terminal (or Git Bash on Windows)
-
Navigate to your local repository
-
Run the following command to cache your GitHub credentials:
git config --global credential.helper cache
-
When prompted, enter your GitHub username and password (or personal
access token if you have one set up)
After trying these steps, you should be able to push your local repository
to the remote GitHub repository without any issues.
If you're still facing problems, feel free to provide more details, such
as the output of the git remote -v command or any error messages you
encounter during the authentication process. The community will be happy to
assist you further.
Happy coding! 🚀
—
Reply to this email directly, view it on GitHub
<#45698 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BA3ZH65R2OJPEUYQSKVEOBTZC6BENAVCNFSM6AAAAAAUKEZCY2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TIOBQG4YTG>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
error: failed to push some refs to 'https://github.com/repo.git' this errror are coming i cant push my code to my repo please help me |
Beta Was this translation helpful? Give feedback.
-
How to save this article? It will be a lot of help |
Beta Was this translation helpful? Give feedback.
You can do the following things
1. check you have read-write permission or not
2. Initialize git repo in local folder and Push using git