idobh2 / node-gitcheckout-cli Goto Github PK
View Code? Open in Web Editor NEWA simple CLI tool to checkout branches easily
License: MIT License
A simple CLI tool to checkout branches easily
License: MIT License
First let me say this is an amazing and useful tool, good job!
Currently, when the tool fails to checkout (when changes would be overwritten by the checkout for example), an ugly error message is printed, e.g:
Failed to execute:
{ Error: Command failed: git checkout branchname
error: Your local changes to the following files would be overwritten by checkout
...
Aborting
at ChildProcess.exithandler (child_process.js:270:12)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:921:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
killed: false,
code: 1,
signal: null,
cmd: 'git checkout branchname' }
Please consider printing a friendlier version of the error message.
It seems that most often then not, I'm checking out remote branches, it would be nice to have -o be the default option.
Maybe have the behavior be that if there's already a local branch tracking the remote one, it would "shadow" the remote branch in the list to prevent duplicate entries.
As the title says, no error is given and the branch stays the same
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.