Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 681 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 681 Bytes

ggoto

ggoto is a helper for quickly navigating between Git branches.

Examples:

# Fetch branch "foo" from origin, update the local "foo" branch, and
# finally checkout it:
ggoto foo

# Same as above, but acts on the currently checked out branch.
ggoto

# Fetch origin/foo and checkout it:
ggoto origin/foo

After checking out a branch, ggoto will also perform some additional actions:

  • If there is a package.json file, and it changed during checkout, then ggoto executes npm i.

  • If there is a composer.json file, and it changed during checkout, then ggoto executes composer install. If the file did not change, then ggoto executes composer dumpautoload.