@shahriyer/gitautomation

Automate your git workflow with single script.

Usage no npm install needed!

<script type="module">
  import shahriyerGitautomation from 'https://cdn.skypack.dev/@shahriyer/gitautomation';
</script>

README

GitHub Automation Script

This is a Python script to automate The boring stuff 🚀.

GitHub tag (latest SemVer) npm (scoped) GitHub license

Installation

You may need the package click to install click.

pip install click

Alter Configurations

In gitAutomate.py you can setup default variable at top starting with "_"

_remote = "your remote name"

Usage

Add gitAutomate.py at your project root and Update your gitignore

__pycache__
gitAutomate.py

Run the gitAutomate.py from your project root ( python -u .\gitAutomate.py )

You can run the script with choice & argument (remote)

python .\gitAutomate.py --choice=npr origin

Commands

"Normal Push" includes 'git add' and 'git commit'

NPM package @shahriyer/gitautomation

npm i @shahriyer/gitautomation install this package with npm and add a script command in your package.json file

"scripts": {
    "automate": "python .\\node_modules\\@shahriyer\\gitautomation\\gitAutomate.py"
  }

and now you can run " npm run automate "

Upcoming

Commands without changes (Clean working Dir) :

  • ✅ Just create new Branch and pull-request.
  • ✅ Just create pull-request.
  • ✅ Prune local branches with the selected remote.