TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Scripts to automate Git and Rails workflow

1 点作者 nicoschuele超过 11 年前
I find myself typing over and over the same commands in the CLI to accomodate my workflow with Git and Rails so I made a collection a few bash scripts. They are in no way groundbreaking (I&#x27;m not a bash coder, to start with) but they save me quite some time. For example, instead of typing:<p><pre><code> git add -A . git commit -m &quot;some comment&quot; git checkout master git merge dev git branch -d dev git push origin master </code></pre> ...I can just type:<p><pre><code> git_p </code></pre> The same goes with Rails apps. I start many new ones and after creating a new rvm gemset, installing Rails, overriding the Gemfile with some common gems, creating a Users and Permissions model, etc... for the 6&#x27;772 times, I made a script that lets you select few things and then generates the new app with:<p><pre><code> rails_create </code></pre> I added them (with a tutorial) to Github here: https:&#x2F;&#x2F;github.com&#x2F;nicoschuele&#x2F;nscripts. There are others too (to drop, migrate and seed a DB, to destroy an app, etc). Maybe some of you find them useful.

暂无评论

暂无评论