It was working fine until tomorrow.
But today I am not able to push changes to the repo.
I tried to clone my repo, it also shows the same error.
fatal: unable to access 'https://github.com/nkp1111/python-projects.git/': Failed to connect to github.com port 443 after 21101 ms: Timed out
The same error is showing up. I haven't changed any setting to my knowledge.
It started to clone and stop after one time.
I suspect it is because of antivirus.
What can i do to make it work again?
There can be many causes for the problem, and we will not be able to solve your problem other than suggesting what to do.
have you set any security with temporary credentials? otherwise, it is most possibly also temporary.
try to clone some other repositories, any repository, to test the connection. if you fail to do that, then rest assured it is a temporary GitHub issue.
then try to clone your repo again. if you can clone but can't push back, then you will need to dig into security settings, first on GitHub, then on your computer.
PS: I can clone your repo right now, so I can say GitHub is working toward my country right now.
Related
I have been facing the following error everytime I try to push changes to a remote repository:
"ERROR: Write access to repository not granted.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. "
I have the SSH keys already set I am able also to git pull and git clone with no problems, the issue is just when I try to push changes.
Do you have any idea about ow to solve it ??
I am using a MacOs .
Thank you in advance for your time.
I removed the SSH keys from github account also I generated them again on my machine and added them again in my github account, but no luck so far.
I am trying to push to a github repo but getting an error
ERROR: Permission to microsoft/playwright.git denied to my_user.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Steps I performed:
1- Successfully Cloned the repo using ssh git#github.com:microsoft/playwright.git
2- But when I am trying to push a branch to it I am received an authentication error
3- Prior to cloning I created a new SSH key and added it [as per instructions here ]
4- I also tested my ssh connection using ssh -T git#github.com and it shows success
Warning: Permanently added the RSA host key for IP address '192.xx.xxx.xxx' to the list of known hosts.
Hi user! You've successfully authenticated, but GitHub does not provide shell access.
5- I also re-cloned the repo after restarting my computer but I still am not able to push to the playwright repo
Regarding to the Fork a repo which describes as the following: -
A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project.
Most commonly, forks are used to either propose changes to someone else's project or to use someone else's project as a starting point for your own idea. You can fork a repository to create a copy of the repository and make changes without affecting the upstream repository.
To collaborate with the public repo, basically we will do the following steps: -
Fork the repo to our own. (in this case, we fork the microsoft/playwright)
Within the forked repo
Make a change/improvement.
Push to the forked repo branch.
If it looks good, then create a pull request back to the upstream to notify them to review and approve.
Sidebar
We may visit the following GitHub documents as a guidance.
Fork a repo
Creating and deleting branches within your repository
About pull requests
Creating a pull request from a fork
First I have created one project in Eclipse and committed to my GitHub using below commands:git init
git add .
git commit -m "first commit"
git remote add origin URI of my repo
git push -u origin master
Then I modified one file in Eclipse and committed to GitHub from Eclipse through creating remote and giving the remote URI of the repo.
I added my team member through add collaborator.
Then he downloaded my project and made a change in a file in Eclipse.
Now, how can he push that modified file to my GitHub repository from within Eclipse?
We have done one thing. He created a remote and gave the URI of my repo. But still we are unable to commit that file.
You need to add your colleague as a collaborator. This can be done in the desired GitHub repo via Settings > Collaborators (you need to type in your password again). Afterwards they have those permissions.
UPDATE
Sorry and good morning ;)
I overlooked that you already added your partner as a collaborator. Another possible reason for your situation could be in the Temporary interaction limits where you can, amongst others, limit the interaction with your repo to prior contributors.
If that doesn't help. Please add some more informations about your colleague's git logs.
UPDATE 2
#Rahul K regarding your comment (which you better add to your question, for faster recognition), your colleague first needs to integrate the remote changes via git pull origin master in order to be able to push his or her changes afterwards. But be aware that he or she might need to migrate any conflicts to files both of you applied changes to.
Best regards, David
I have resolved the issue by cloning the repo in my local folder, adding the project to eclipse and changing the file committed.
Before that you have to add that person as a collaborator. So that he/she can clone your repo using the command below:
git clone "Path to the repository"
This is an old question but I'll like to say this to help others that might still be facing this same issue.
I also faced this issue with a friend. I already made him a collaborator but he couldn't push. What we did to solve it was to clone the repo using the ssh url instead. Then we set up authentication in git with ssh. And we were able push successfully.
If you already cloned the repo with the usual HTTPS url, you can change the remote origin url using the git remote set-url origin <url> command but url here will be the ssh url.
I'm struggling with an issue connected to GitHub. I've committed some changes using GitBash console and got an info that the push was successful and there's nothing to commit. When I went into logs, there was this particular log looking like this:
The issue is that when I go back into my GitHub account, I can see just an initial commit in there, nothing more.
And the console clearly says that the commit was successful.
Please help!
Git is a distributed version control system, so you have one local copy of the repository, Github has another copy. As far as git is concerned every copy is equally important.
For your changes to exist in Github, you have to push them there, with something like:
git push origin master
Try git remote -v to get more information on your tracked repositories. Github has some great help pages on this stuff.
For what you say in your question, I think you don't have actually pulled your local repository in your GitHub account.
To do that, use git push origin master
When you use git commit your changes are saved in your local repository, not in your remote (that in this case is GitHub)
Thanks to all that helped me understand my issue. Turns out the files did not copy between folders properly and that's why there're not changes detected on git. Now everything is working.
Thanks again!
I just came across a known error with Eclipse/Glassfish in a project I am working on. Basically, Eclipse/Glassfish are somehow getting confused, and refuses to launch my Web Application. A full re-install of eclipse and glassfish still gives me the same problem when I use my project files from the github repository.
So I had to delete the repository locally, and then create a new Eclipse project with all the same code files in it. Now Eclipse/Glassfish runs the new project smoothly, and I want to update the remote repository with the new project.
However, when I do the command in git bash:
git push origin master
I get the following error:
error: failed to push some refs to 'git#github.com:......"
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g. 'git pull....') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
So basically this is telling me to do a pull before i do the push. But I really don't want to do a pull, as it contains some eclipse stuff that is causing the problem that I spent hours trying to fix.
What command do I need to do, that will push the current files I have to the remote repository, and at the same time, get rid of those that don't exist locally from the remote repository? I don't mind so much if they exist in previous commits, but just not from the current one onwards....
All help much appreciated.
You can by your own risk force the push.
git push origin master --force
You will overwrite the files on origin.
...This flag disables these checks, and can cause the remote repository
to lose commits; use it with care.
Documentation:
git-push