Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple git pull in one folder containing multiple repository [closed]

Tags:

git

shell

github

I am using ubuntu and i have a folder gitrepos which has many clone of multiple git repos from github.

i want one script which can automatically do a git pull in all my repos.

say

[gitrepos]
  [repo1]
  [repo2]
  [repo3]
    ...

i want a script to do a git pull from all repox
note the repo name are different.

any shell or py script available for this ?

like image 721
Rajmahendra Avatar asked Nov 12 '12 01:11

Rajmahendra


People also ask

Can I have multiple git repositories in one folder?

There might be a case when you want 2 different Git repositories in a single directory. The most logical situation which comes to mind is keeping 2 repositories in your home-folder, one to perhaps keep your configuration files, and another to keep your custom scripts.

Can there be multiple repositories for each project?

we can create multiple repositories for multiple projects, but you can not create for one repository for multiple projects , another way to maintain multiple projects into one repository is you can create the branches for individual project and store it .


1 Answers

Have a look at mr, a tool meant for exactly this.

like image 119
opqdonut Avatar answered Sep 27 '22 22:09

opqdonut