https://github.com/sekiphp/useful-scripts
This repository contains scripts for easier work with miscellaneous tools (currently Git).
https://github.com/sekiphp/useful-scripts
bash-script git git-commands scripts
Last synced: 17 days ago
JSON representation
This repository contains scripts for easier work with miscellaneous tools (currently Git).
- Host: GitHub
- URL: https://github.com/sekiphp/useful-scripts
- Owner: Sekiphp
- Created: 2018-07-23T05:50:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-14T15:47:58.000Z (2 months ago)
- Last Synced: 2025-03-23T20:11:43.537Z (about 1 month ago)
- Topics: bash-script, git, git-commands, scripts
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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: [email protected] Thank you!# git/commit_helper.sh
Script for faster commiting and checking changes.
**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:**
```console
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.
## Create commands:
Add line below to file: `~/.bashrc` or `~/.bash_profile`
```console
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](https://github.com/midlan)