Why cant I clone repository from GitHub - github

I cant clone anything from GitHub.Every time I add my credentials, instead of bein able to clone the repository as normal, I get a message that says that
This is not a valid repository
and then message below as well.
Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks
ls-remote https://github.com/lindar-joy/mrq-wallet.git
Output:
Error: Logon failed, use ctrl+c to cancel basic credential prompt.
I have tried the advice I found here, without any success:
https://github.community/t/git-clone-is-not-working-for-a-private-repo/501/3
Any suggestion would be much appreciated. Thank you in advance!

Do this (from inside Git Bash):
git credential-manager uninstall
then:
git credential-manager install
It may complain - for me it complained on both steps that it failed, but it fixed my problem.

I had the same problem for some time now but everything got fixed once I installed the new git version on my system.
Just visit this link
https://gitforwindows.org/

I managed to bypass the issue by using Github Desktop

Related

How to upload a selenium project on github with below mentioned error?

I have tried uplaoding my project using Git bash but getting an error.
[1]: https://i.stack.imgur.com/H1sjx.png
I've also looked at the links provided so far but I'm still getting no where.
Thanks in Advance !
You clearly seem to be very new at Git. I would HIGHLY recommend you look at a tutorial and try and understand for yourself what your problem is. With that said, here is your solution
Assuming you have properly created and committed to a local git repository, add a remote repository as such git remote add origin https://github.com/link-to-your-git-repo.git. Then push everything with git push -u origin master.
Your problem is that you have a misunderstanding of how to use the Git Bash. I highly recommend you read this at the minimum.
https://git-scm.com/book/en/v2/Getting-Started-The-Command-Line

fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Bad file descriptor

I am working on Robot framework Automation project. All of a sudden git commit does not work I get below error on commit command
**fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Bad file descriptor**
I am working on Windows machine. I have done 4 commits till now and code is in Repo. With the latest changes, commit is not happening with above error I have gone through few issues quoted in stack-overflow regarding this but I could get it resolved.
Please help me in overcoming this issue
I use the command git commit -a -m "description" or git commit -m "description"
None of the sudo command work for me it says
> $ sudo chown -R useremail .git/
> bash: sudo: command not found
It can happen when you accidently create a branch with root permission. Its best to check .git locally for ownership permissions i.e. ls -la .git/refs/heads/ should be owned by the user and not root.
Try the same command with:
a regular CMD session (no Git bash or Cygwin)
the latest Git for Windows 2.21
a new clone repo
You should not experience that bug again.

How can I clone github in cmd?

Thanks for help me
I need someone to help me in cmd I can't clone git in cmd
What do I need to do that ?
What kind of error message are you getting? it should be as simple as: git clone [url] [folder]
Do you have git installed on your pc? you can install git via here
What did you try till now, can you supply some more information?

Sourcetree error : 'git status' failed with code -1073741819

Started getting following error in Sourcetree suddenly. I dont know what is the reason behind it. but I am nit able to resolve it.
Not able to perform any operation.
I ran into this as well. I followed the steps here and it solved my problem:
https://jira.atlassian.com/browse/SRCTREE-2018
Specifically:
Using the terminal and changing your directory to your repository you can do the following (making sure you back up your repository first, just in case):
rm .git/index
git add .
Or if you have changes in your working directory you want to keep you can do the following:
rm .git/index
git reset HEAD .
I had the same issue and it was not fixed even if I deleted the .git/index and .git/index.lock file.
I had to go to SourceTree Options -> Git and select "Use Embedded Git" to make it work. Before it was "Use System Git".
This is happening because Git was installed and then SourceTree with Git inside.
This generated a conflict between the two installed GITs.
You need to uninstall Git or in the SourceTree installation point where it is installed.
I'm facing with the same issue. My software configuration is:
Windows 10
SourceTree 2.0.18.1 configured to use System Git version
Git v2.12.2.windows.1
I updated Git to v2.12.2.windows.2 (the latest build) and the problem
disappeared.
Try doing this
close Sourcetree window
open Sourcetree Bookmarks view
delete bookmark
add bookmark again

Eclipse can not push to Github

I have installed EGit and create a repo and push it to github using the following steps:
Step1:
Step2:
Step3:
Step4:
Step5:
Step6:
I get the following error:
Can't connect to any repository: https://github.com/mleoking/JavaGnuplotHybrid.git (https://github.com/mleoking/JavaGnuplotHybrid.git: error occurred during unpacking on the remote end: index-pack abnormal exit)
I have also tried to use ssh but it even does not allow me to pass step3. With http I can pass step3.
Thanks for help.
Found the problems by myself:
I simply deleted the git repository for my project and then create a fresh new git repository following this guide: http://wiki.eclipse.org/EGit/User_Guide/Getting_Started
And then still use the same steps, using https rather than ssl. I successfully committed it to github: https://github.com/mleoking/JavaGnuplotHybrid
I do not really know where was the problem. But eventually the above steps work.
Please use the ssh address of your repository. http is read-only.
git#github.com:mleoking/JavaGnuplotHybrid.git
On custom linux repos it could be a permissions error:
cd <path_to_git_folder.git>
chmod -R 777 *