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

Add push commands #35

Closed
wants to merge 1 commit into from
Closed

Add push commands #35

wants to merge 1 commit into from

Conversation

NRKirby
Copy link

@NRKirby NRKirby commented Feb 19, 2018

I've added a section to gitalias.txt for push commands which I use frequently:

po

Useful for pushing to a branch, e.g:

$ git po dev

pom

Shortcut for pushing to the master branch, e.g:

$ git pom

@phdru
Copy link
Contributor

phdru commented Feb 19, 2018

Why? If you've configured origin as the upstream remote for the branches bare git push pushes the current branch to the upstream.

@erikmd
Copy link

erikmd commented Feb 20, 2018

@NRKirby as pointed out by @phdru it suffices to type git push, which is not that longer than git pom ;)
FYI this behavior of git push is explained in this other interesting repo; hoping this helps.

@joelparkerhenderson
Copy link
Member

Close because git push handles this common case.

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

Successfully merging this pull request may close these issues.

None yet

4 participants