GithubHelp home page GithubHelp logo

bash-helper-scripts's Introduction

Bash Helper Scripts

This repository contains a collection of Bash scripts that automate various tasks, making it easier to manage your workflow.

Included Scripts

gitCherrypickCommits.sh: This script automates a common Git task. It compares your commits on origin/main with those on origin/release. If any of your commits are present on origin/main but not on origin/release, the script will cherry-pick those commits onto origin/release. This script uses your current Git user email and your Unix system email to identify your commits.

gitNewBranch.sh: This script creates a new branch in your local Git repository based on origin/main. The name of the branch should be provided as an argument and should start with 'feat/' or 'fix/' followed by a Jira number (e.g., 'feat/ABC-456').

gitAmendPush.sh: This script adds all changes to the Git staging area and amends the last commit. If a commit message is provided as an argument, it will be used for the new commit. If no commit message is provided, the last commit will be amended with no change to its message. The commit message will be prefixed with a JIRA task number extracted from the branch name, if present.

Usage

Before running the scripts, make sure to make them executable with the following command:

bash Copy code chmod +x scriptname.sh You can then run the scripts with:

bash Copy code ./scriptname.sh

Notes

Please note that if a script attempts to cherry-pick a commit that results in a merge conflict, the script will stop, and you'll need to resolve the conflict manually. After resolving the conflict, you can continue the cherry-pick with git cherry-pick --continue.

Contribution

Feel free to fork this repository and submit pull requests for any improvements or additions you make.

bash-helper-scripts's People

Contributors

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