Questions tagged [git-clone]

Obtains a local copy of a remote Git repository.

1359 questions
0
votes
1 answer

When happens when a Git repo is cloned and some files/directories in the cloned repo are deleted?

Newbie question. Say, I just cloned a repository on GitHub to my PC. What happens if I delete some files and directories from the cloned repo? Will only the existing files in the cloned repo be updated? or will the next update replace the cloned…
its_me
  • 10,998
  • 25
  • 82
  • 130
0
votes
1 answer

Git server and clone

I have create my git server with this link link git clone working in server but when i clone my project on local machine i have a problem "warning: remote HEAD refers to nonexistent ref, unable to checkout." i used for clone "git clone…
TliliDroid
  • 26
  • 8
0
votes
3 answers

How to set git:username automatically based on URL of remote repo

I have some git repositories on my local machine that are hobby projects (hosted on GitHub), and some that are work-related (hosted elsewhere). Because I am doing it wrong (don't ask, it's irrelevant) I periodically have to rm -rf and re-clone a…
Quuxplusone
  • 23,928
  • 8
  • 94
  • 159
0
votes
1 answer

Jenkins GitHub Clone Permission Denied

When running the job to clone my devel branch of my repo in Jenkins, I get the following error: stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly I'm running Jenkins on CentOS 6 and have the GitHub Hooks set up…
w2bro
  • 1,016
  • 1
  • 11
  • 36
0
votes
1 answer

Git clone from unfuddle, how to not include the initial directory, which in this case is the name of the repository

I have a git repository on unfuddle.com. I've been working locally on my windows machine using TortoiseGit. I'm ready to clone the repository onto a development server and I'm able to get all the files using git clone…
user1073319
  • 161
  • 1
  • 11
-1
votes
1 answer

Why is git clone non-deterministic?

Sometimes git clone results a dirty worktree. I get it, you commit text files with crlf, you configure .gitattributes to force lf, and set autocrlf to true - you are asking for trouble. But why under the same conditions you would sometimes get a…
Iterokun
  • 184
  • 6
-1
votes
1 answer

Git: Unable to pull from Bitbucket repo on new system

I recently got a new Mac, and it comes with Git installed. I tried to pull from a repo, it asked me for my password, I entered the password for the Bitbucket account with which I have access to the repo, and it said Login failed due to incorrect…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
-1
votes
1 answer

can't clone or add in git repo

when ever I'm trying to check my git status or want to clone in my repsitry the cmd is showing me this, can someone report a problem & help me out with an error?
-1
votes
1 answer

PowerShell, git pull if present, or git clone if not

I saw this construct on a question about bash git -C 'repo-path' pull || git clone https://server/repo-name 'repo-path' So, if the git pull fails, then do the git clone, which seems quite a clean approach. What would be an equivalent syntax for…
YorSubs
  • 3,194
  • 7
  • 37
  • 60
-1
votes
1 answer

Git clone not working in Qtest Launch - but it is working from my terminal

I am using Qtest for running the scripts and it is running my local host When i try to git clone from local host url...it is not working Output* error: cannot spawn sh: No such file or directory fatal: could not read Username for…
-1
votes
1 answer

cloning git hub repository on ubuntu

trying to clone the following github: https://github.com/Azure/azure-iot-sdk-c.git here is the command the tutorial suggested to use: git clone -b https://github.com/Azure/azure-iot-sdk-c.git i have tried the…
-1
votes
2 answers

How i can execute git clone command without executing "git init" command in my local folder?

I want to clone a project from github to my local created folder. However, when i execute "git clone" command i have below error. fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary…
m Siami
  • 11
  • 1
-1
votes
2 answers

Unable to git clone using go language

I'm trying to clone the git/bitbucket repository using the below go-lang code snippet, but it's not working , I can't see any errors either. dir, err := ioutil.TempDir("", "clone-example") if err != nil { log.Fatal(err) } defer…
itgeek
  • 549
  • 1
  • 15
  • 33
-1
votes
1 answer

git and github desktop not cloning me repository

I clone my repository in github desktop but it was showing me this error not for only this but for other repo's as well i sign out/sign in but its still not working Note: This is happening after i change my github username and i took a lil break…
Saman
  • 9
  • 1
-1
votes
1 answer

How to transfer GitHub classroom private repo to my GitHub repo?

I have an assignment project which was created by GitHub Classroom and is also private. So how to transfer my project to my personal account with all existing commits?
nurmdrafi
  • 419
  • 4
  • 11