Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto push to new branches? #2

Open
1wheel opened this issue Mar 8, 2018 · 1 comment
Open

Auto push to new branches? #2

1wheel opened this issue Mar 8, 2018 · 1 comment

Comments

@1wheel
Copy link
Contributor

1wheel commented Mar 8, 2018

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

@petulla
Copy link
Contributor

petulla commented Mar 21, 2018

@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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants