-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 user command #992
base: master
Are you sure you want to change the base?
Add user command #992
Conversation
Thanks, this looks good!
|
This functionality is related to #225. |
Hmmm how about the command was |
@timofonic This kinda bifurcated #225 where @mislav had already written in July 2015:
I hadn't seen that at the time I made this PR (#992). Writing all of I originally wrote this PR because I think contributing back to github projects using the web based PR mechanism is a lot more difficult than it needs to be. For some of my projects I want people contributing to them as much as possible, and so I started to explore anything that I could do to encourage that. A command line option seemed like a pretty good encouragement, because I could just make a script that does everything for you—it could build a local copy of hub, prompt for your username, and then automatically push your changes. You could clone my code, make your changes, check it in, and then simply run a script in the repo in order to contribute back! When this pull request was not accepted, I lost interest, and to be honest I haven't even used |
Um |
This new command writes the default user from hub config to stdout with a
trailing newline. For example, if you are me you get:
This is useful for automating contribution scripts. Say, for example, that you
want to write a script that pushes your contributions to some feature branch.
Using this command, you can do:
Whereas otherwise you would have to manually fill in the user name, even though
hub knows what user name it would normally use from config.