How can I clone github in cmd? - github

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?

Related

When I try cloning a repository from github i keep getting an error, anyone know what i'm doing wrong?

I'm trying to clone a repository on github into a directory on my computer.
I'm on mac and when i run this code
git clone <git#github.com:melenagrilliot/coding-prework-2023.git>
I'm getting an error sh: parse error near `\n'
Anyone know what I could be doing wrong ?
In the interest of covering all bases, I will assume you have already ran the command without the < >
git clone git#github.com:melenagrilliot/coding-prework-2023.git
If the above doesn't work, then it is not a git related issue. There is something wrong with your shell (sh). The issue might stem from the .profile file in your home directory. Can you please use the following command to copy the contents of your .profile file and share it here?
cat ~/.profile | pbcopy

Why cant I clone repository from 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

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

Can't clone nor stage git with lfs through egit

Enviroment
I did setup an test enviroment for git-lfs. This includes Git 1.9.5, Eclipse 4.6.2 and EGit 4.4.0/4.6.0. git-lfs is installed and works. Eclipse shows the right git configuration parameters set by git lfs install (Preferences->Team->Git->Configuration->User Settings). Git-lfs is available in the PATH of git bash and the windows CMD.
Git and Git-LFS just works fine throught git bash.
Problem
It's important that it's possible to use git throught Eclipse Plugins, which is currently EGit. EGit usually seems to support git-lfs, but in my case I am not able to clone nor stage (cloned throught git bash).
Clone:Execution of filter command 'git-lfs smudge -- 'SW/xy.jar'' on file 'SW/xy.jar' failed with return code '2', message on stderr: 'Downloading 'SW/xy.jar' (289.10 KB)
Stage: Execution of filter command 'git-lfs clean -- 'SW/xy.jar'' on file 'SW/xy.jar' failed
Questions
Does someone have any suggestion what am I doing wrong?
Why is git-lfs clean executed throught adding/staging?
Thanks in advance! Any help will be appreciated!
Updating from GIT 1.9.5 to the current Version (2.11.1) helped!

bzr push bzr+ssh gives me an error on webfaction

I setup bzr repo on both server and local. I am trying to push the code from my local directory to server, I am using the following command:
bzr push bzr+ssh://<username>#<username>.webfactional.com/myrepo
it asks for password and then gives me the error that bzr comman not found.
does anybody know what do i miss here? I think something is wrong from the server side, do you know how i should setup the servers side correctly?
Thanks
Adding the
export PATH=/home/< webname>/bin:$PATH
to .bashrc solved the issue :)