Skcript's Logo
Skcript's Logo

Increase Productivity With Smart Group Commands

Our Sr. Architect open sources the short commands for everyone to use.

Subscribe to our awesome Newsletter.

Increase Productivity With Smart Group Commands

Currently reading:

Increase Productivity With Smart Group Commands


Subscribe to our Newsletter:


Share article on:

Smart Group Commands are a series of short shell scripts that helps you stay productive. With these commands, you just have to hit less than 5 keys rather than lengthy commands, to get the job done.

Currently, I’ve included shortcuts to work with some of the most commonly used Git operations. But there’s more in the pipeline for this project.

Commands

  1. Simple Add, Commit, and Push
1
 sgc "Your commit message"

The above command derives

1
2
3
git add .
git commit -m "Your commit message"
git push origin master

2. Commit and push to upstream

1
 sgc -u "Your commit message"

The above command derives

1
2
3
git add .
git commit -m "Your commit message"
git push upstream master

3. Commit and push to gh-pages

1
 sgc -gh "Your commit message"

The above command derives

1
2
3
git add .
git commit -m "Your commit message"
git push origin gh-pages

4. Fetch and merge from origin master

1
 sgc fo

The above command derives

1
2
git fetch origin master
git merge origin/master

5. Fetch and merge from upstream master

1
 sgc fu

The above command derives

1
2
git fetch upstream master
git merge upstream/master

6. Bundle and bower install (Rails Users)

1
 sgc bi

The above command derives

1
2
bundle install
bower install

Installation

sgc comes with simple installation, run the following wget or curl to install.

wget

1
 wget -O - https://raw.githubusercontent.com/varun-raj/sgc/master/install.sh | bash

curl

1
 curl -s https://raw.githubusercontent.com/varun-raj/sgc/master/install.sh | bash

For Contributing

Share article on

Comments and Discussions

Skcript

NEXT ARTICLE

Enterprise Storage Problems #1: Increased Management Complexity & Decreasing Budgets

Stay Updated with Our Newsletter
SIGN UP