Skip to content

This repository contains scripts for easier work with miscellaneous tools (currently Git).

Notifications You must be signed in to change notification settings

Sekiphp/useful-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Useful scripts

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.

Postcardware download

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: seki.php@gmail.com Thank you!

git/commit_helper.sh

Script for faster commiting and checking changes. image

Command syntax: gch

Recommended settings:

Fix spaces & UTF characters in filename: git config core.quotepath off

git/branch_update.sh

Script for updating current branch from master branch.

Command syntax: gbu

git/branch_create.sh

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

git/branch_delete.sh

Delete specified branch (local + remote).

Command syntax: gbd BRANCH_NAME

git/analyze_changes_in_folders.sh

If you are working with a large number of repositories (vendor), it is good to know where the changed files are. image

Create commands:

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

Special thanks to:

Milan Davídek

About

This repository contains scripts for easier work with miscellaneous tools (currently Git).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages