top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Copy full content of one repository to another in GIT

0 votes
61 views

I have a given server repository at location, let say "A" (URL) I have a new empty repository at another location, let say "B" (URL)

I WOULD LIKE TO COPY ALL CONTENT FROM A TO B.

  • In a local clone of B I did a "git pull A" but I've got the "master" branch only.
  • In a local clone of B I cannot say "git pull --all A"

COULD YOU PLEASE PROVIDE THE SINGLE STEPS ON HOW TO DO THIS?

  • please: not rsync like stuff, I would prefer the git way -> I hope there's one
  • please: a few comments would be great
posted Jun 12, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
Have you looked at the
git clone --mirror

Similar Questions
+1 vote

How to configure a read-only copy of a remote Git repository on a local server in bare mode and automatically synchronize its contents.

I need to configure a mirror of the repository hosted at another location and the mirrored repository should automatically perform syncing of code at regular intervals.

+1 vote

I have two branch in one repository that I need to maintain for 2 different deliveries.
Say branch1 and branch2 in test.git repo.

test.git
- branch1
foo_v1/text.txt
foo_v2/text.txt
- branch2
foo/text.txt

branch1 is developers branch all source looks version'ed manner and branch2 is superset for branch1, example foo_v1 and foo_v2 are the directories in branch1 where developer will update the latest one here foo_v2 and branch2 foo is same as the latest one of branch1 for an instance.

Suppose developer send 10 patches on branch1 where are changes in terms of _/ then I need to apply on my local repo branch1, till now is fine then I need to apply same 10 patches on to my branch2 where source tree which is quite question here how can I do.

+1 vote

There must be some quick fix but I just can't figure out how to do it:

I initialized a git repository on my local computer, but unfortunately at the wrong place, i.e. in the wrong directory. How can I undo this or move the working directory that my git repository is synched with?

In my example, instead of initializing my repository in /home/git/rep1, I initialized it in /home ... :S

+1 vote

I've been trying to put my filesystem for a very small busybox-based distro into a git-repository. And with success. The only strange thing I can not get my head around is the following :

When making a compressed tarball from the files from the repository (after clone/checkout) I get a very much larger tar.gz-file. Size goes up from 16M to 21M (!?)


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...