我在一份目录下转播了多根基,我想知道,在编造每张名录方面是否有某种功能,检查是否有任何未经批准的变化,并向我报告这些变化?
我可以每天早上发言,以确保所有事情都到来。
就在任何一天,我就忙于进行多次重新思考,而我却忘记进行我的变化,如果我不久就兑现承诺,那会造成冲突。
Chris
我在一份目录下转播了多根基,我想知道,在编造每张名录方面是否有某种功能,检查是否有任何未经批准的变化,并向我报告这些变化?
我可以每天早上发言,以确保所有事情都到来。
就在任何一天,我就忙于进行多次重新思考,而我却忘记进行我的变化,如果我不久就兑现承诺,那会造成冲突。
Chris
Andy 是正确的(在评论中):如果母体目录本身是母体背书的根基,所有子子公司都是子产品,那么 g的地位就可以发现其中之一的任何变化。
You can also use (with submodules) git diff
git submodule foreach --recursive git diff --name-status
Without submodules, see a scripting solution at "git: Find all uncommited locals repos in a directory tree".
I wrote a command-line tool gita for this purpose. It can display the status of all repos, including the edit status, the relation to remote branch, etc. It also batch executes commands from any working directory.
You can also group the repos. For your project structure, you can run
gita add -r <root>
which will automatically add the subordinate repos into a group.
Then gita ll root
will display the relevant information. gita <command> root
will batch run the command on repos in the root group. You can surely run command on specified repos from any working directory too.
There are other functionalities such as setting context, defining custom commands, etc. Installation is pip3 install -U gita
. You can find more information on github.
<代码>gita ll的指挥显示,在分支名称旁边有3个可能的标志,表明
+
: staged changes*
: unstaged changes_
: untracked files/folders分支机构名称有5种方式。
color | meaning |
---|---|
white | local has no remote |
green | local is the same as remote |
red | local has diverged from remote |
purple | local is ahead of remote (good for push) |
yellow | local is behind remote (good for merge) |
Maybe 可能有助于:
在您的<代码>.gitconfig文档中添加这些内容,然后,从母体名录中操作git status-all
,以便重新获得所有储存库的地位。
[alias]
status-all = "!for d in `find . -name ".git"`; do echo "
*** Repository: $d ***" && git --git-dir=$d --work-tree=$d/.. status; done"
I don t think git has this build in, thus some time ago I created a script to do this: https://github.com/mnagel/clustergit
git status
,git dra/code>,
gitzan/code>, and more.
如果有人需要一行:
rootdir=$(pwd);for folder in $(ls -p | grep /);do cd "$rootdir/$folder";git status; cd $rootdir; done
I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...
I understand how to merge branches together in git, and I love how easy it makes it. I have a branch that looks like this: project/ |--subproj1/ | |---(files) | |--subproj2/ |---(files) A ...
We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...
I ve met quite a few people lately who says that 3rd party libraries doesn t belong in version control. These people haven t been able to explain to me why they shouldn t yet, so I hoped you guys ...
I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...
I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...
A subversion repository contains the html, latex and man directories that doxygen generates from the source code. Even for small source code changes, new files are being generated with random names ...
Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...