• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Managing Many git Repositories on Computer : GitHub, Heroku Cloud

By Abhishek Ghosh January 9, 2013 9:50 pm Updated on January 9, 2013

Managing Many git Repositories on Computer : GitHub, Heroku Cloud

Advertisement

Managing Many Git Repositories on Computer can be quite pathetic if you are using lot of Cloud PaaS like AppFog, Heroku Cloud or you have lot of GitHub repo. GitHub has own tools but that is only for GitHub. This guide on Managing Many git Repositories is for them who already are advanced users or want to experiment in the way we pointed in previous guide on Easy Guide to Use Git.

 

Managing Many git Repositories on Computer : Why it Matters

 

Normally Git repo’s sits on username folder :

 
Managing Many git Repositories on Computer

The red boxed folders are git repositories. From the screenshot one thing will be apparant to you – if you have few hundreds to few thousands of git repositories, it will be a pain to manage. In other word, they need a proper directory, subdirectory structure under the username. Actually you might not want move the repositories which are already pushed to avoid huge pain. Now you probably have understood why we named the guide as – Managing Many git Repositories on Computer.

Advertisement

---

 

Managing Many git Repositories on Computer : Command Line Tools and GUI Based Tools

 

First, delete the git repositories which are empty by recursively deleting the folders :

 

Vim
1
rm -rf directoryname

 

Second, there are bash scripts available for managing many Git Repositories like :

 

Vim
1
2
#!/bin/sh
if [ ! "$1" = "" ] ; then

Vim
1
2
3
if [ "$GITREPO" = "" -a -d "$HOME/cm/src" ] ; then
GITREPO="$HOME/cm/src"
fi

Vim
1
if [ "$GITREPO" != "" ] ; then

Vim
1
2
echo "Git repositories found in $GITREPO"
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-"

Vim
1
DIRS="`/bin/ls -1 $GITREPO`"

Vim
1
for dir in $DIRS ; do

Vim
1
2
3
4
5
if [ -d $GITREPO/$dir/.git ] ; then
echo "$dir -> git $1"
cd $GITREPO/$dir ; git $@
echo
fi

Vim
1
2
done
else

Vim
1
echo "Git repositories not found."

Vim
1
2
fi
fi

 

And run it. Other than bash scripts, you can use Gitslave :

 

Vim
1
http://gitslave.sourceforge.net/

 

Managing Many git Repositories on Computer can be done with GUI based tools too :

 

 

git repository gui tool

 

Two such tools are :

 

 

Vim
1
http://gitboxapp.com/

Vim
1
http://www.gittiapp.com/

 

Abhishek-GhoshTagged With managing many git repositories on computer , tips for managing many git repositories on one windows machine
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Managing Many git Repositories on Computer : GitHub, Heroku Cloud

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Pushing Git Repositories over FTP in Rackspace Cloud Sites

    Pushing Git Repositories over FTP in Rackspace Cloud Sites is possible in read only mode. Here is a guide for hardcore command line interface users to use git.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy