public void Bind(string orgName, string userName, bool local)
        {
            EnsureArgument.NotNullOrWhiteSpace(orgName, nameof(orgName));

            IGitConfiguration config = _git.GetConfiguration();

            string key = GetOrgUserKey(orgName);

            if (local)
            {
                _trace.WriteLine(userName == AzureReposBinding.NoInherit
                    ? $"Setting binding to 'do not inherit' for organization '{orgName}' in local repository..."
                    : $"Binding user '{userName}' to organization '{orgName}' in local repository...");

                if (_git.IsInsideRepository())
                {
                    config.Set(GitConfigurationLevel.Local, key, userName);
                }
                else
                {
                    _trace.WriteLine("Cannot set local configuration binding - not inside a repository!");
                }
            }
            else
            {
                EnsureArgument.NotNullOrWhiteSpace(userName, nameof(userName));

                _trace.WriteLine($"Binding user '{userName}' to organization '{orgName}' in global configuration...");
                config.Set(GitConfigurationLevel.Global, key, userName);
            }
        }