gg

Git with less typing

gg update

gg update [--clean] [[-r] REV]

update working directory (or switch revisions)

Update the working directory to the specified revision. If no revision is specified, update to the tip of the upstream branch if it has the same name as the current branch or the tip of the push branch otherwise.

If the commit is not a descendant or ancestor of the HEAD commit, the update is aborted.

Options

-r rev
revision
-clean
-C
discard uncommitted changes (no backup)

Aliases