Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Some useful scripts

License

NotificationsYou must be signed in to change notification settings

qiray/useful-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Some useful scripts.

Git

Local update multiple repositories from list. List example ishere.

Usage:

bash git/pull.sh bash/list_example.txt

Script for pushing git repository to all it's remotes. If it's called without arguments it pushes current folder. Else it parses filelist like pull script. List example ishere.

Usage:

bash git/push.sh bash/list_example.txt# orbash git/push.sh

Change the author and committer name and e-mail of multiple commits for all branches and tags (original here -https://stackoverflow.com/a/750182). You should run this script from folder with repository to change.

WARNING! These changes are dangerous because they change remote git history!

Usage:

# Run this script from folder with repository to change.bash git/change_author.sh WRONG_EMAIL CORRECT_NAME CORRECT_EMAIL

Bash

Copy folder via ssh using tar to current folder. It can be useful for copying folder with large amount of files via ssh. It's faster than pure ssh.

Usage:

bash bash/ssh_tar.sh user@host /path/to/folder# orbash bash/ssh_tar.sh user@host -p port /path/to/folder

Parse filelist, call command $2 for each folder from filelist $1 and print text $3 for each folder. List example ishere.

Usage:

# to show all directories in file bash/list_example.txtbash/parse_filelist.sh bash/list_example.txtpwd"Current directory"

Call word count util (wc) for files in directory $1 with extensions $2, $3, $n etc.

Usage:

# For example to call wc for C and C++ files and headers (files *.c, *.cpp, *.cxx, *.h, *.hpp, *.hxx) run:bash/wc.sh. c cpp cxx h hpp hxx

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp