An open API service indexing awesome lists of open source software.

https://github.com/hashfx/git-script

shell script to ease git experience
https://github.com/hashfx/git-script

Last synced: over 1 year ago
JSON representation

shell script to ease git experience

Awesome Lists containing this project

README

          

# Scripts to enhance UX of Git Script

+ create script file: ```nano gitac```
+ add the code of gitac.sh
+ save file and give execution permisison ```chmod +x gitac```
+ (optional) move it to a directory in your $PATH: ```mv gitac /usr/local/bin/```

gitac


alias of: git add filename1 filename2 etc && git commit -m ""



#!/bin/bash

# Get the last argument as the commit message
commit_msg="${@: -1}"

# Get all other arguments except the last one (file names)
files=("${@:1:$#-1}")

# Add the files to staging
git add "${files[@]}"

# Commit with the provided message
git commit -m "$commit_msg"