Git Capsules

Git Capsules is a small desktop application that can read your Git repositories and reproduce them on another machine with the same folder structure.

Stuck on building an application that has dependencies on multiple repos with predefined folder structure? Wants to bundle your git repositories and redeploy it on to another pc?

Git Capsules can help!

Features

It gives you the ability to select your Git Repos Folder and create a bash script based on the Repo [master origin] URL and commit Id. The Bash script can be run on any machine and will…

  1. Recreate the same folder structure and clone repos (if they doesn’t exist)
  2. Stash changes (if a repo exists and contains uncommitted changes)
  3. Checkout a detached head at the designated Commit Id

Every bash script generated can be saved as JSON and recreated. Next time you need another bash script with the same repos but with different commit, just refresh and Export.

See example below

Example

step 1 gif

Click create and select your git projects directory. It can be a root directory of all your git repos or just 1. Git Capsules will retrieve all valid git repos with [Remote Origin] and display on screen with folder name and current commit.

step 2 gif

Select the git repos you wish to export/save. Checked off commit will be included in bash script. Fill out the bash script info form.

  • Capsules (dropdown) Collection of repos. If no repos are selected, app would not save a record.
  • Filename (textfield) Name of Bash File.
  • ExportLocation (dialog) export location of bash file. Comment(textarea) Optional, comment will display when user open bash script.
step3 gif

Open bash file. Press enter. wola! Bash will...

  1. Clone (if repo doesnt exist)
  2. Stash your local changes (if repo exist)
  3. Checkout the commit you specified in the app.
  4. A report will be generated at the end.
recreate gif

Select bash script you wish to update/re-create. Click on the refresh button. It will refresh and grab current commit you are on. Follow step2 and step3 from then, file out form, export and run bash script.