Skip to content

tainguyenphat74/devtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

DevTools

Welcome to Phat-Tai Nguyen's DevTools repository. This project contains a set of tools to enhance your development workflow.

Contents

Introduction

This repository includes a bash script to automate the process of adding, committing, and pushing changes to a Git repository.

Prerequisites

  • Git must be installed on your system.
  • Bash shell (Linux and macOS) or Git Bash (Windows) should be available.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/tainguyenphat74/devtools.git
  2. Navigate to the cloned directory:

    cd devtools

Running the Bash Script

The bash script git-add-commit-push-all-in-one.sh simplifies the process of adding, committing, and pushing changes to your Git repository.

  1. Open Git Bash.

  2. Navigate to the directory where the script is located:

    cd path/to/devtools
  3. Ensure the script has execution permissions:

    chmod +x git-add-commit-push-all-in-one.sh
  4. Run the script:

    ./git-add-commit-push-all-in-one.sh

    To run the script without emojis in commit messages:

    ./git-add-commit-push-all-in-one.sh --no-emoji

Usage

To use the script, run it with the desired commit type and message, it will automatically add, commit, and push to the remote branch. Here are some examples:

# When you type this command, it equivalent to: git add -A && git commit -m "✨ implement new feature" && git push
git feat "implement new feature"

Similar example:

git fix "fix bug"                       # git commit -m "🐛 fix bug"
git docs "update documentation"         # git commit -m "📚 update documentation"
git style "format code"                 # git commit -m "💄 format code"
git refactor "refactor code"            # git commit -m "♻️ refactor code"
git perf "improve performance"          # git commit -m "⚡ improve performance"
git test "add tests"                    # git commit -m "✅ add tests"
git chore "update dependencies"         # git commit -m "🔧 update dependencies"
git build "run build"                   # git commit -m "🛠️ run build"
git ci "update CI configuration"        # git commit -m "👷 update CI configuration"

Contributing

We welcome contributions! Please fork the repository and create a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Make your work easier.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages