Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Some things I've written to make git more pleasant

Notifications You must be signed in to change notification settings

dbt/dbt-git-utils

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Some simple utilities I've written to make using git more pleasant.

git-all

Usage: git all [--recursive] 'command'

Finds every submodule and runs a command in it. Similar to git submodule foreach, except it runs the commands in parallel. Nice for io-blocking things. Stdout for each command is buffered separately until all commands complete (stderr is not).

Example: git all 'git fetch && git merge --ff-only origin/master'

git-multistatus

Usage: git multistatus upstream-head...

Print out a list of all refs/heads relative to a provided baseline. HEAD has a *. Local commits are listed below the ref name. Each ref is trailed by a number in parens which is the number of commits by which it trails the baseline.

This is designed to be run in a terminal under watch.

Example: git multistatus origin/master origin/branch/v2

git-smash

Stomps on the current commit metadata date and author (plus whatever other args it has). A fine thing to do to a commit you've just patched up and rebased on top of a bunch of newer history before you resubmit it. Takes all arguments git commit --amend does.

Like all history smashing, don't do this on histories people already rely on.

Example: git commit -m "thing" ; touch foo; git add foo; git smash -a -C HEAD

About

Some things I've written to make git more pleasant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.