Questions tagged [git-clone]

Obtains a local copy of a remote Git repository.

1359 questions
0
votes
0 answers

Need a Plan for Git Push/Pull

I've recently started work on an existing project that wasn't using a version control system. I've used Subversion extensively, but management wanted to use Git. I am learning it, and learning to love it. For my own sanity, I created a Git…
Sonny
  • 8,204
  • 7
  • 63
  • 134
0
votes
1 answer

Setup a git bare repo on a windows apache server

I need help in setting up a bare git repo on an apache web server. I followed the below instructions $ cd /var/www/htdocs/ $ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update $…
user1386101
  • 1,945
  • 1
  • 14
  • 21
0
votes
1 answer

EGit clone from and push to GitHub

I have an Eclipse (CDT) project setup with EGit to commit to local master and push to github. So far I have been just using this setup to pretty mush act as cloud backup from my primary dev PC But now I would like to be able to work on the same…
Toby
  • 9,696
  • 16
  • 68
  • 132
0
votes
1 answer

git push having weird behavior?

So I'm in the process of learning Git and I'm using the sourcetree GUI. I have a remote repository on server A(not a bare repo but a working one). So i cloned the remote repo onto my local machine and then I created a new file called "blah.txt" and…
0
votes
2 answers

How to setup a git or svn repository on a local server/PC on Windows?

I haven't been able to find a step by step tutorial to setup a git or svn repository on my local server/PC running on Windows! It should provide access to multiple users for submitting source code and stuff. I am new to concepts such as svn or git…
schwarz
  • 501
  • 7
  • 28
0
votes
2 answers

Github - use one repo as basis for another, preserving branches and history

I'd like to move over a repo, with all its history and branches, to a fresh repo. I've been able to find ways to use a single branch as a basis for a new repo (git workflow - using one repo as the basis for another), but I can't figure out how I'd…
eirikir
  • 3,802
  • 3
  • 21
  • 39
0
votes
1 answer

Cannot clone a git repository and have to create a repository locally first and to configure its local remote setting

My ~/.ssh contains two keypairs: id_rsa_foo&id_rsa_foo.pub for user foousername on GitHub (github.com) id_rsa_bar&id_rsa_bar.pub for user barusername on GitHub (github.com) for user barusername on my server (indefero.myserver.com) The…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

Can't clone a development branch

I would like to install typerex from its development branch. But I have trouble in cloning it as follows: ~:~$ git clone git@github.com:OCamlPro/typerex.git Cloning into 'typerex'... The authenticity of host 'github.com (204.232.175.90)' can't…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
0
votes
2 answers

Is there a way to clone a local git repository together with its staged and non-staged changes?

I want to write a script that clones a local git repo multiple times, but also copies over all non-committed changes over to the cloned repos. Is this possible? Had a look at git-clone, but didn't see such an option.
Behrang
  • 46,888
  • 25
  • 118
  • 160
0
votes
1 answer

windows git clone from linux

I have installed Cygwin Terminal on my windows. And I try to clone the git repository we have on a linux server with command : $ git clone ssh://some.server.com/somename Cloning into 'somename'... ituser3@some.server.com's password: I know that…
Aris
  • 4,643
  • 1
  • 41
  • 38
0
votes
2 answers

Is this run on local or remote?

I'm trying to do something very simple: Clone a repository. The documentation here: http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository isn't particularly clear on the usage of the clone command. I assumed you would run clone within an…
Tom B
  • 2,735
  • 2
  • 24
  • 30
0
votes
2 answers

what git command should be used to remove prior git info

I have made a copy ( clone) of a php project and renamed it so that I can use its code as a basis for further development. At this point I've decided not to use git's branch functionality although I understand this may be an option. I'd like to…
user1592380
  • 34,265
  • 92
  • 284
  • 515
0
votes
1 answer

git how to clone and track all branch

Possible Duplicate: Is it possible to clone git config from remote location? As in the title, How do I clone repos and track all remote branches automatically at once? When I clone remote repos, it only tracks origin/master, then I need to track…
Robber Pen
  • 1,033
  • 2
  • 12
  • 24
0
votes
1 answer

How to form a correct git clone path?

I created a remote Git repository and now I'm trying to clone it onto a different computer using Sourcetree. However, every time I type something into the "Source Path/URL" field, it gives me an error that says "This is not a valid source path/URL."…
jaypea07
  • 53
  • 1
  • 8
0
votes
1 answer

Are remote branches cloned to local git repo?

Possible Duplicate: Partial clone with Git and Mercurial If I only want to clone one branch, how can I do that? Does git clone url mean git clone url --all? [hugemeow@home base]$ git branch * master [hugemeow@home base]$ git branch -a * master …
hugemeow
  • 7,777
  • 13
  • 50
  • 63