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 'incoming' and 'outgoing' aliases #12

Merged
merged 2 commits into from
Jul 2, 2016

Conversation

phdru
Copy link
Contributor

@phdru phdru commented Jun 25, 2016

No description provided.

@kissgyorgy
Copy link

kissgyorgy commented Jun 25, 2016

Hi @phdru, can you tell a legit use case for push2all?

@phdru
Copy link
Contributor Author

phdru commented Jun 25, 2016

@kissgyorgy: push branch(es) to all configured remotes:

git remote add origin [email protected]:GitAlias/gitalias.git
git remote add gh [email protected]:phdru/gitalias.git
git push2all
git push2all master

push configured branches or just master to origin and gh.

@phdru
Copy link
Contributor Author

phdru commented Jun 25, 2016

@kissgyorgy even better example: I regularly push SQLObject to Github, Gitlab and SourceForge.

@joelparkerhenderson
Copy link
Member

I have this use case in practice too; my current work project pushes to multiple remotes.

What do you all think of calling this "push-remotes"? (I'm aiming to not use "2" to mean "to" because teams has many non-native-English speakers)

@phdru
Copy link
Contributor Author

phdru commented Jun 25, 2016

@joelparkerhenderson push-remotes sounds strange for me: push remotes to where? May be name it push-to-remotes? push-all-remotes? push-to-all? All of them are too long and far from perfect, so decide yourself.

@joelparkerhenderson
Copy link
Member

I'm doing push-to-all-remotes because it's the most explanatory; personally I'm going to alias this to "pushes" because it's really handy for my current project. Thanks for your ideas!

@joelparkerhenderson joelparkerhenderson merged commit f9abe97 into GitAlias:master Jul 2, 2016
@phdru phdru deleted the remote branch July 3, 2016 18:34
@phdru
Copy link
Contributor Author

phdru commented Jul 3, 2016

Not all of them are mine — I've collected some from public dotfiles repositories, mostly at Github. 😄 But I'm glad there's a place to collect them and use as a point of reference.

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

3 participants