git-go icon indicating copy to clipboard operation
git-go copied to clipboard

Auto push to new branches?

Open 1wheel opened this issue 7 years ago • 1 comments

automatically run

git push -u origin $branchName

if this comes up?

Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=<remote>/<branch> fix-bottom

could be too much magic

1wheel avatar Mar 08 '18 23:03 1wheel

@1wheel See my note here. Am in the process of overhauling my command line, so sorting through these tools.

You might try an alias like this..

go = "!f() { git add -A && git commit -m \"$1\" }; git pull; git push || git push origin HEAD; f"

petulla avatar Mar 21 '18 13:03 petulla