KBI0025: Saving changes in datasets owned by other users#
- authors:
Adina Wagner <adina.wagner@t-online.de>
- discussion:
<link>
- keywords:
sharedRepository, git config, multi-user
- software-versions:
datalad_0.19.0, git_2.39.2
It is generally recommended to not share one and the same dataset or Git repository (i.e., the same directory on the file system) when collaborating with others. In the typical workflow for collaboration, each user has their own clone of the respective dataset instead. One of several reasons why sharing the same dataset is not ideal is that Git lets the operating system decide which Unix file permissions are applied, and typical umask configurations give write permissions only to the file owner, which in turn creates permission errors when a user other than the dataset owner saves a modification.
But if a dataset needs to be shared among several users, the following Git configuration can help: