Skip to content

Instantly share code, notes, and snippets.

@SmiddyPence
Created February 19, 2019 10:26
Show Gist options
  • Select an option

  • Save SmiddyPence/456a85ef62fbe502f67f3b2f30f679a1 to your computer and use it in GitHub Desktop.

Select an option

Save SmiddyPence/456a85ef62fbe502f67f3b2f30f679a1 to your computer and use it in GitHub Desktop.

Revisions

  1. SmiddyPence created this gist Feb 19, 2019.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    git config --global alias.up '!git remote update -p; git merge --ff-only @{u}'

    #!/bin/sh
    for repo in repo1 repo2 repo3 repo4; do
    (cd "${repo}" && git checkout master && git up)
    done