diff --git a/developer_manual/general/devenv.rst b/developer_manual/general/devenv.rst index e4e336220..4e116c815 100644 --- a/developer_manual/general/devenv.rst +++ b/developer_manual/general/devenv.rst @@ -84,6 +84,24 @@ To disable JavaScript and CSS caching debugging has to be enabled in :file:`core DEFINE('DEBUG', true); +Keep the code up-to-date +------------------------ + +If you have more than one repository cloned, it can be time consuming to do the same the action to all repositories one by one. To solve this, you can use the following command template:: + + find . -maxdepth -type d -name .git -exec sh -c 'cd "{}"/../ && pwd && ' \; + +then, e.g. to pull all changes in all repositories, you only need this:: + + find . -maxdepth 3 -type d -name .git -exec sh -c 'cd "{}"/../ && pwd && git pull' \; + +or to prune all merged branched, you would execute this:: + + find . -maxdepth 3 -type d -name .git -exec sh -c 'cd "{}"/../ && pwd && git remote prune origin' \; + +It is even easier if you create alias from these commands in case you want to avoid retyping those each time you need them. + + .. _GitHub: https://github.com/owncloud .. _GitHub Help Page: https://help.github.com/