SixArm.com » Git » scripts for verison control
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
hooks
CONTRIBUTING.md
README.md
git-branch-current
git-branch-tips-for-iteration-and-story.txt
git-clone-mirror-fetch-to-deploy-new-release.txt
git-config-typical
git-flatten.txt
git-gc-all
git-get-all
git-init-add-commit
git-keep-empty-directories
git-meld
git-pull-all
git-push-all
git-repo-summaries.sh
git-rm-vendor-plugins-module
git-status-all
git-submodule-remove

README.md

SixArm.com » Git » scripts for version control

Most frequent commands:

  • git-branch-current: print the current git branch, suitable for using in other scripts.
  • git-keep-empty-directories: touch a .gitkeep file in each empty directory.
  • git-meld: use meld to compare git diffs.

Setup:

  • git-init-add-commit: shortcut to init && add -A && commit saying "publish".
  • git-config-typical: set the typical master branch with push default.

Management:

  • git-repo-summaries.sh: accumulate a TSV output of git repo summaries for our projects.
  • git-rm-vendor-plugins-module: remove a rails git submodule from vendor/plugins and cache.

Find all git directories within the current directory and iterate:

  • git-gc-all: garbage collect
  • git-get-all: pull and submodule init and update recursively
  • git-pull-all: pull
  • git-push-all: push
  • git-status-all: status

How to:

  • git-branch-tips-for-iteration-and-story.txt: tips for git workflow for managing projects.
  • git-clone-mirror-fetch-to-deploy-new-release.txt: tips to speed up git deployments.
  • git-flatten.txt: how to flatten a repo to depth 1.
  • git-remove-submodule.txt: how to delete a submodule from the project, cache, and plugins.

Hooks:

  • hooks/pre-commit-delete-trailing-whitespace.sh: find and fix trailing whitespace in commits.