在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tkrajina/git-plus开源软件地址:https://github.com/tkrajina/git-plus开源编程语言:Python 97.7%开源软件介绍:Git plusGit plus is a set of git utilities:
InstallationAdd this directory to your $PATH:
On OSX using brew:
Or using pip:
Git multiIf you have repositories ~/projects/repository1, ~/projects/repository2, ~/projects/repository3, ~/projects/repository4, ... First go to:
Check the status of all repositories:
...which is the same as:
Execute "git gui" only on repositories which contain some changes:
Switch to "master" for all repositories:
Create a "test" branch on all repositories and checkout it immediately:
...and so on. The basic usage is simple "git multi normal_git_commands_here". In addition to this, "git multi -c git_commands" will execute "git_commands" only on changed repositories and "git multi -b" will show the current branch for all repositories. If you want your "git multi" commands to always execute all except some repositories add them to the file ".multigit_ignore" in the same directory. You could also pass a list of repos to exclude as a command line flag: With:
A .tar archive named git-repositories-yyyy-mm-dd-hh-mm.tar with all repositories in this directory (i.e. their .git directories) will be created. If you have a nested structure of repositories, e.g. ~/project1/repository1, ~/project1/repository2, ~/project2/repository3, use
... or a different number to look for git repositories up to the specified depth. Group by outputIf you have many projects with same git command output, for example:
You can configure multi git to group projects with same output together:
This can be done by setting:
Or reset to default with:
Git relationGit relation gives you the relation between two commits/branches/tags. For example:
...will tell you if two branches are equals, or if master is AHEAD of test-branch or if master is BEHIND test-branch or if they diverged in some commit in history. For example:
Another example:
Brief:
By default,
Relation between current branch and its upstream (for example
Relation between another branch and its upstream:
Relation between
Relation between
Git old-branchesOld-branches can detect old/unused branches. Find local branches older than 10 days:
Find remote branches older than 60 days:
Find local and remote branches older than 120 days:
Find only merged or unmerged old branches:
Find and remove branches older than 10 days:
Note that branches will not be removed unconditionally, you'll be asked once to confirm the deletion. Git recentList branches ordered by last commit time:
Show only remote branches:
Show all branches (local and remote)
Show only last 10 branches:
Show only first 15 branches:
Git semverList all git semver tags (i.e. tags in the format
Increase major version (
Increase minor version (
Increase patch (
LicenseGit plus is licensed under the Apache License, Version 2.0 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论