Git Product home page Git Product logo

git-helper's Introduction

Git Helper

A bash script that adds UI features and walkthrough steps for git

  • Intialize git
  • Set remote
  • View/Choose Branch
  • Auto stage all files
  • Pull & Push to Sync

Installation

Paste the one line command in terminal

RECOMMENDED Create alias sync to run

echo 'alias sync="curl -sSf https://raw.githubusercontent.com/Boden-C/git-helper/main/git.sh > git.sh && chmod +x git.sh && ./git.sh"' >> ~/.bashrc && source ~/.bashrc

Doing this adds an alias to your ~/.bashrc file and creates a temporary git.sh file which might override your own files

Create Permanent File Called git.sh

curl https://raw.githubusercontent.com/Boden-C/git-helper/main/git.sh > git.sh && chmod +x git.sh

If you use this, you must replace sync with ./git.sh. The file will not automatically update

Uses

Run sync help

When running the script, it will automatically initialize git If there is no remote origin, it will give a menu to set it

  • sync
    • General case; the walkthrough option to sync or change branches, gives you
      • Branch selection
      • Commit message prompt
      • Pulls and Pushes
  • sync -m "commit message"
    • Faster way; skips branch selection and commit message prompt
  • sync pull
    • Pulls only
  • sync push
    • Pushes only; use if there was an error with pushing but not pulling
  • sync remote
    • View and change remote origin

git-helper's People

Contributors

boden-c avatar

Watchers

 avatar

git-helper's Issues

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.