This repository contains scripts for easier work with miscellaneous tools.
All scripts were tested in Git Bash
on Windows 10 and in terminal of Ubuntu.
This repository is available under postcardware license. If you using mine scripts, please send me a postcard from your hometown. My address is no longer available at this public site - I give you my address if you write me to: [email protected] Thank you!
Script for faster commiting and checking changes.
Command syntax: gch
Fix spaces & UTF characters in filename: git config core.quotepath off
Script for updating current branch from master branch.
Command syntax: gbu
Create new branch based on current version of master branch. First argument is used as name of new branch.
Command syntax: gbc NEW_BRANCH_NAME [-b FROM_BRANCH]
Examples:
gbc my_new_branch
gbc my_new_branch -b master
gbc my_new_branch -b develop
Delete specified branch (local + remote).
Command syntax: gbd BRANCH_NAME
If you are working with a large number of repositories (vendor), it is good to know where the changed files are.
Add line below to file: ~/.bashrc
or ~/.bash_profile
alias gch=path/to/commit_helper.sh
alias gbu=path/to/branch_update.sh
alias gbc=path/to/branch_create.sh
alias gsu=path/to/set_upstream_to.sh
alias gaf=path/to/analyze_changes_in_folders.sh
alias gbd=path/to/branch_delete.sh
You can do something like that: echo "alias ..." >> ~/.bashrc