Questions tagged [git-clone]

Obtains a local copy of a remote Git repository.

1359 questions
0
votes
1 answer

Ansible not pulling git repo

I'm trying to pull github repo using ansible, but it's giving me following error. stderr: fatal: destination path '/var/www/server-ip' already exists and is not an empty directory. msg: fatal: destination path '/var/www/server-ip' already exists and…
Mubin
  • 4,325
  • 5
  • 33
  • 55
0
votes
0 answers

How to make a git clone --bare into a git clone --mirror

I accidentally created a copy of a repo with git clone --bare and now I can't update from the original repo. This GitHub article advises --mirror for updates: If you want to mirror a repository in another location, including getting updates from…
Randomblue
  • 112,777
  • 145
  • 353
  • 547
0
votes
0 answers

Setting up an already cloned git workspace as local repository

I have a clone from a remote repository, and i do my work on this clone and does git commit and git push to remote repo. I work using a desktop PC and some times using a laptop. From laptop now I do remote desktop to my desktop PC and work. But if…
arahimpk
  • 1
  • 1
0
votes
2 answers

Using git on a single server, i.e. no truly remote origin

This seems so dumb, but I can't figure it out. Tons of instructions out there for cloning or adding a remote server, or pushing to a cloned repository. But I'm trying to figure out how to set up a git repository in a shared directory on a server,…
abalter
  • 9,663
  • 17
  • 90
  • 145
0
votes
2 answers

Clone github repo with ':username/:reponame' folder structure automatically

It may seems too hacky and maybe require some kind of git plugin. What i'm trying to do is to clone a github page to :githubsername/:repoName for example git clone 'git@github.com:bekicot/assignment_rss.git would result to clone the repo to…
Yana Agun Siswanto
  • 1,932
  • 18
  • 30
0
votes
1 answer

Getting error while checkout in git

I am using the below command in terminal. $ git checkout https://coding@bitbucket.org/coding/coding.git but getting the below error error: pathspec 'https:/coding@bitbucket.org/coding/coding.git' did not match any file(s) known to git. Please…
AMit SiNgh
  • 325
  • 4
  • 17
0
votes
1 answer

How do I change the clone URL for my GIT repositories?

I have moved my Git repository from one IP to a different IP. And now I am facing a problem with changing it's clone url. Old URL: 1] http://105.15.96.261/something/some_repo.git Now I have moved to a new IP & I want the clone url to be: 2]…
vishal kokate
  • 126
  • 3
  • 12
0
votes
1 answer

Can I Go Back to a Previous Git Clone

I am using TortoiseGit (i.e. right-click on the Windows Explorer folder followed by selecting Git Clone....). If I do two Git Clones to different folders, can I switch back to the first and use it (i.e. develop and check in from it)? Both clones…
Buck
  • 599
  • 7
  • 20
0
votes
0 answers

Cloning git subtree without downloading whole repo

I need to clone native_client_sdk subdir from Chromium repository, because repository is huge and I don't have resources to download it. The answer Is there any way to clone a git repository's sub-directory only? doesn't help, because git is still…
anatoly techtonik
  • 19,847
  • 9
  • 124
  • 140
0
votes
2 answers

Difference between remote git repository and current cloned copy

I am attempting to create a bash script that clones a repository off of a Github account and places it on an NFS volume on a Raspberry Pi cluster. It will be run via cron job at midnight daily. Of course, I don't want to pull from this repo more…
nerdenator
  • 1,265
  • 2
  • 18
  • 35
0
votes
1 answer

Issue git clonning using ssh but works using https

When i try cloning public repository hosted on bitbucket using SSH it fails, for instance when i try cloning the following git repository git clone git@bitbucket.org:tildeslash/monit.git It gives me this error Cloning into 'monit'... Permission…
Ibrahim Azhar Armar
  • 25,288
  • 35
  • 131
  • 207
0
votes
1 answer

How can I see the names of "local" git branches of a repo from the repo server

How can I see the names of "local" git branches of a cloned repo from the repo server? I have 8-10 developers and I want to insure they are using branch naming standards on their local machines.. Is that possible?
0
votes
1 answer

How to clone git repo that have other repo in it?

I'm trying to clone https://github.com/ornicar/lila to my PC. That project have a link to other project in https://github.com/ornicar/lila/tree/master/modules/chess and when I simply do git clone git@github.com:ornicar/lila.git it doesn't clone…
Ivan
  • 105
  • 1
  • 6
0
votes
0 answers

How to import a project from repository for readthedocs?

I have a project on a github repository, and I'm trying to build a documentation for it, based on its markdown files. I decided to use readthedocs for it, however, I'm having trouble importing it correctly. While trying to build the docs, it returns…
Michał Szydłowski
  • 3,261
  • 5
  • 33
  • 55
0
votes
2 answers

Git pull will not update local files

I seem to have an issue with using git pull on a local branch. Essentially I have cloned a branch from my remote BitBucket repository, which is cloned to my USER_HOME\BRANCH directory on my machine. I want to keep this branch up to date with the…
SpencerRakoczy
  • 111
  • 2
  • 7