Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preserve git remotes

I have fixed network of git remotes and I would like them to be attached to repository. Unfortunately git-clone doesn't clone remotes. Is there a way around it?

like image 358
Łukasz Lew Avatar asked Oct 15 '09 12:10

Łukasz Lew


2 Answers

I begin this command

https://github.com/juanpabloaj/git-remote-init

for save the remotes in a .gitremotes file

like image 157
JuanPablo Avatar answered Sep 23 '22 14:09

JuanPablo


There is no way to do this with git, as far as I know.

Telling users to run scripts post-clone is what people tend to do. If it's a ruby project, you probably have rake, for example, so you could have a rake post_install task.

like image 25
August Lilleaas Avatar answered Sep 23 '22 14:09

August Lilleaas