Git Product home page Git Product logo

gitshellhelper's Introduction

README.md

What is this?

Small list of argument-less shell helpers to manage interaction with git repos, like update or remove branches locally & remote, keep master update to date

Inspiration

get annoying by typing every day same kind of command-sets to manage git repos in daily business got inspired by https://stackoverflow.com/questions/45352246/how-to-switch-and-save-without-commit-in-git and wrote small bash helpers which helps me to manage my git repos with argument-less* helpers *gbrm requires one argument

Installation

  • clone / download repo to a folder of your choice
  • add the bin folder to your list of paths, e.g. by updating your .bashrc: export PATH=$PATH:<checkout-path>/bin e.g. export PATH=$PATH:/Users/Saparot/Projects/Saparot/gitShellHelper/bin

Helper overview

gbru git branch rebase update

  • save your local changes by temporary local commit local
  • switch to master, updater it from upstream
  • switch to branch you called gbru from, rebase it from master
  • restore your local changes by reverting local commit
  • just continue in the branch you are working..

gbrm git branch remove

  • remove branch local and push remove to origin

gbs git branch switch

  • save changes by temporary local commit in current branch
  • switch to the branch you asked for and restore changes stored in the request branch

gmu git master update

  • works only when you are in master
  • save your local changes by temporary local commit local
  • pull from upstream
  • restore your local changes by reverting local commit

gtlc git temporary local commit

  • save your local changes by temporary local commit local

gtlr git temporary local restore

  • restore your local changes by reverting local commit

gitshellhelper's People

Contributors

saparot avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.