Giter Club home page Giter Club logo

git-scripts's Introduction

git-scripts

This contains the following scripts that i use to improve my dev speed

The merge_to_staging.sh script

This script allows me to take my current changes on my branch and merge them to a staging branch this script allows you to set the following flags

  • -f (force merge)
  • -p (push to remote after merge)
  • -n staging (-n should be followed by the name of the staging branch you want to merge to)

example:

#This will force merge to staging-nick then push to staging
/merge_to_staging.sh -f -p -n staging-nick
#this will merge to staging and push to remote
/merge_to_staging.sh -p

The new_branch.sh script

There is the new_branch script that allows me to create a branch and prefix fix with the one of the following terms:

  • -f /fix

  • -u /update

  • -n /feat

    Then followed by the name of the branch e.g

./new_branch.sh -n this-is-a-new-feature
./new_branch.sh -f this-is-a-fix
./new_branch.sh -u this-is-an-update

More stuff

In addition to the git scripts I've set the following bash alias to use :

#System Aliases

alias cls='clear'
alias ll='ls -alF'
alias l='ls -CF'
alias la='ls -A'

#dotnet
alias ds='dotnet-script'
alias dn='dotnet'


#PHP Stuff
alias sl='./vendor/bin/sail'
alias sla='./vendor/bin/sail artisan'
alias slat='./vendor/bin/sail artisan tinker'
alias slc='./vendor/bin/sail composer'
alias sln='./vendor/bin/sail npm'
alias sail='./vendor/bin/sail'


#git stuff

alias gcm='git commit -m'
alias ga='git add .'
alias gac='git add . && git commit -m'
alias gpl='git pull'

alias gbn='~/projects/git-scripts/create_new_branch.sh -t n'
alias gbu='~/projects/git-scripts/create_new_branch.sh -t u'
alias gbf='~/projects/git-scripts/create_new_branch.sh -t f'
alias gs='~/projects/git-scripts/merge_to_staging.sh'

#npm stuff
alias npi='npm install'
alias npu='npm update'
alias npd='npm run dev'

git-scripts's People

Contributors

nicksoftware avatar

Watchers

 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.