peakpg / git-er-done Goto Github PK
View Code? Open in Web Editor NEWCLI for automating Git process flows (Written in Ruby)
CLI for automating Git process flows (Written in Ruby)
Using basic Git, if you have a project that has one or more remote branches, you have to manually create a local tracking branch for each remote. Example:
$ git branch -a
* master
remotes/origin/3.0-stable
remotes/origin/3.1-stable
remotes/origin/3.3.x
remotes/origin/HEAD -> origin/master
remotes/origin/master
This has 4 remote branches (master, 3.0-stable, 3.1-stable, 3.3.x). As per [this article](http://gitready.com/beginner/2009/03/09/remote-tracking-branches.html_To create a local branch, you need to do the following 4 times:
git branch --track 3.1-stable origin/3.1-stable
It would be nice if the tool could just do this automatically, like:
gd track-remotes
Could even ask questions of the user (to skip or rename local branches).
Depending on the entire rails stack for just one very simple command (git) is way overkill, especially since having multiple versions of rails installed can cause problems.
Remove the dependency.
gd done
Expected: An interactive rebase so I can squash the commit.
Actual: The rebase is aborted since there are uncommited changes. The commits are then merged into master.
Solution:
Abort the process if there are uncommitted changes. Remove the automatic commit in favor of just a check and then warning. (This might be preferable since the 'commit all' is probably overly greedy anyway.
Even if you only have a single commit in your feature branch, you still get the interactive rebase, even though its unnecessary.
Solution: Avoid interactive rebasing if only a single commit (or skip interactive rebasing all together and do a non-interactive squash)
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.