https://github.com/b1f6c1c4/git-freeze

Convert git submodules to regular directories

https://github.com/b1f6c1c4/git-freeze

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.6%) to scientific vocabulary

Keywords

git git-commit git-flow git-submodule git-subtree
Last synced: 5 months ago · JSON representation

Repository

Convert git submodules to regular directories

Basic Info
  • Host: GitHub
  • Owner: b1f6c1c4
  • License: mit
  • Language: Shell
  • Default Branch: master
  • Homepage:
  • Size: 16.6 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 2
  • Releases: 0
Topics
git git-commit git-flow git-submodule git-subtree
Created almost 6 years ago · Last pushed over 5 years ago
Metadata Files
Readme License

README.md

git freeze

Convert submodules to regular directories

Why

External dependencies break everytime. We want to manage everything by ourselves!

Install

bash git clone --depth=1 git@github.com:b1f6c1c4/git-freeze.git git config --global alias.freeze '!'"$(pwd)/git-freeze/git-freeze"

Usage

``` Usage: git-freeze [-h|--help] [-n|--dry-run] [--tree|--octopus] [--no-commit] [--keep-gitmodules] [--]

Convert submodules to regular directories (of their HEADs)

-n|--dry-run: Just list what commits will be freezed

--tree: Don't modify anything, just give me the tree SHA-1
        (implies --no-commit)

--octopus: Preserve history of all submodules by merging
    Warning: ENTIRE history of ALL submodules is a huge deal!

--no-commit: Don't commit (like git merge --no-commit)

--keep-git-modules: Do not remove the .gitmodules file

```

Note: Submodules will be converted to directories of which content are wherever their HEADs point to, NOT where the parent repo index points to.

If you wish to convert based on where the parent repo index points to, align the submodules HEADs with parent repo index first by: bash git submodule update --init --recursive

Note: This tool only modify the parent repo. All submodules' worktrees are NOT touched.

License

MIT

Owner

  • Login: b1f6c1c4
  • Kind: user
  • Location: NJ, USA
  • Company: Princeton University

52BE D143 A92D BE96 2B83 092B 9BAC 0164 9600 1E70

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 4
  • Total pull requests: 0
  • Average time to close issues: 4 days
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • b1f6c1c4 (4)
Pull Request Authors
Top Labels
Issue Labels
enhancement (2)
Pull Request Labels