Stuck on building an application that has dependency on multiple repos with predefined folder structure? Wants to bundle your git repositories and redeploy it on to another pc? Git Capsules can help!
Git Capsules is a small desktop application that can read your Git repositories and reproduce them on another machine with the same folder structure.
- 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…
- Recreate the same folder structure and clone repos (if they doesn’t exist)
- Stash changes (if a repo exists and contains uncommitted changes)
- 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.
- Select your git repos directory. it can be a root directory of multiple git repos.
- Checked off git repos you wish to export/copy, Fill out bash file info on the right.
- run generated bash script on to another pc.
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.
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.
Open bash file. Press enter. wola! Bash will...
- Clone (if repo doesnt exist)
- Stash your local changes (if repo exist)
- Checkout the commit you specified in the app.
- A report will be generated at the end.
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.