node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

When creating a remote repo with --new, do "git remote add origin" automatically #696

Closed zevaverbach closed 4 years ago

zevaverbach commented 4 years ago

Describe the solution you'd like A one-liner of (see #695) gh --new that creates a repository on GitHub, in this case named after the local repo's dirname, and adds the new repository as a remote called origin.

protoEvangelion commented 4 years ago

This sounds like a sensible default 👍

protoEvangelion commented 4 years ago

:tada: This PR is included in version 2.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

protoEvangelion commented 4 years ago

@zevaverbach try gh re --new --clone --init or without --init