Skip to content

Instantly share code, notes, and snippets.

View meteoFurletov's full-sized avatar
🎯
Focusing

Nikita Furletov meteoFurletov

🎯
Focusing
View GitHub Profile
#!/bin/bash
# A script to commit changes to a specific branch, then merge it back.
# Creates the branch if it doesn't exist, or uses it if it already exists.
# Ensures we're working with the latest version by pulling first.
# Exit immediately if any command fails
set -e
# --- VALIDATION ---
# Check if the correct number of arguments are provided