Giter Site home page Giter Site logo

git-shortcuts's Introduction

Git Shortcuts

For Linux, with git installed

Installation:

Source the two file in the bash.bashrc file:

source <absolute path>/gclone_function.sh ;
source <absolute path>/git_functions.sh ;

Usage:


gclone Works with ssh cloning

gclone [email protected]:<username>/<repository>.git 

or 

gclone <username>/<repository>.git 

It will automatically discern which one out of the two options you have used and clone the repository, and then it will cd into it


gall Adds everything in the current working folder and commits with the message given The message does not need quotes

gall This is an update 

gadd adds everything in the current working directory

gadl adds everything

gco commits with the words parsed as commit message

gadd
gadl
gco this is another commit message 

gps git push

gst git status

gcdu With an absolute path as parsing argument, it will automatically go to the folder, add everything, commit with the current time and date and push It will also let the user know of the progress, with messages in the terminal or with notify-send It checks and puts files over 100mb to gitignore It checks if there are any changes to be committed It fetches the latest changes from the remote repository, and pulls them if the branch is behind

gcdu <path>/<git project>

git-shortcuts's People

Contributors

nikolasfil 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.