Comments (6)
I would say that's a problem with your git config. Why would you set default
to nothing
? We can't specify origin master
as the user might use a different name of their remote and different branch name.
from np.
I guess it's a matter of personal taste, I like the strictness brought by having to specify the remote/branch. Still I would like to be able to use np
.
Maybe something in the lines of: np major --remote=origin --branch=master
from np.
They would be mutually required. Fallback to git push
if not specified.
from np.
Another solution might be to allow to disable the push: np major --no-git-push
, and let the user do it by herself
from np.
Have you considered setting default
to simple
?
simple - in centralized workflow, work like upstream with an added safety to refuse to push if the upstream branch's name is different from the local one.
When pushing to a remote that is different from the remote you normally pull from, work as current. This is the safest option and is suited for beginners.
This mode will become the default in Git 2.0.
from np.
I think we've seen the same SO thread, yeah might be the simplest solution here.
from np.
Related Issues (20)
- Unable to publish preview (`publish.getPackagePublishArguments` is not a function) HOT 1
- Allow creating a GitHub draft release without generating release notes
- ls-collaborators is not a valid access command with npm v9 HOT 5
- np output command error
- np error ERR_REQUIRE_ESM HOT 2
- Provide a way to silently approve in advanced files that won't be part of the published package
- `ENOWORKSPACES` when publishing from workspace HOT 1
- np command extremely slow HOT 7
- how to hook in to publish a bundle with injected version HOT 1
- Doesn't include `dist` folder HOT 5
- np hangs while publishing HOT 4
- Open npmjs.com instead of asking for OTP HOT 1
- after published, print the npm url HOT 2
- When prepublishOnly script fails, Git operations are not rolled back
- Support pnpm in 2024? HOT 1
- Issue with Dependency Packages on publish
- Consider dropping `ow` HOT 2
- Duplicate Tag + Release created without `v` Prefix HOT 10
- np with npm 10.5.1: Failed to parse output of npm pack HOT 6
- Husky prepare script breaking np HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from np.