bitbucket-server

Find the list of inactive users in Bitbucket?

可紊 提交于 2021-02-08 08:32:14
问题 How can I find the list of those users who never logged in to their Bitbucket account? Is there any query or macro, or will I have to do it manually ? 回答1: You can do this with SQL query to database: SELECT cu.lower_user_name ,cu.display_name ,cu.lower_display_name ,cu.lower_email_address ,cu.is_active ,dateadd(second,cast(cast(cua.attribute_value AS nvarchar(255)) AS bigint)/1000,'19700101 00:00:00:000') AS LAST_LOGIN FROM [BitBucketDB].[dbo].[cwd_user] As cu LEFT JOIN [BitBucketDB].[dbo]

Find the list of inactive users in Bitbucket?

巧了我就是萌 提交于 2021-02-08 08:32:13
问题 How can I find the list of those users who never logged in to their Bitbucket account? Is there any query or macro, or will I have to do it manually ? 回答1: You can do this with SQL query to database: SELECT cu.lower_user_name ,cu.display_name ,cu.lower_display_name ,cu.lower_email_address ,cu.is_active ,dateadd(second,cast(cast(cua.attribute_value AS nvarchar(255)) AS bigint)/1000,'19700101 00:00:00:000') AS LAST_LOGIN FROM [BitBucketDB].[dbo].[cwd_user] As cu LEFT JOIN [BitBucketDB].[dbo]

Commit a file to git repository using Stash (bitbucket server) REST API

守給你的承諾、 提交于 2020-12-02 07:18:48
问题 I am using Atlassian Stash (Bitbucket server) to manage my git repository. Recently I had a requirement to commit a file (a newly created .xml file) to my Git repository using the Stash REST API. I've gone through the documentation, but it seems like the REST API doesn't support that functionality. Am I correct, or is this possible somehow? 回答1: Probably you are looking for PUT /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/browse/{path:.*} From the documentation of API PUT /rest

Revert local Sourcetree repo to master

天大地大妈咪最大 提交于 2020-11-29 02:58:21
问题 I'm new to Sourcetree and have created a mess locally, with 7 ahead commits compared to the origin/master. I want to ignore and remove everything I've done locally and start again by reverting my local repo to the origin/master as it currently stands. How do I do this? Remark : I know the origin/master is correct since I have another machine next to me which I don't use to do commits and just did a pull from the origin/master, and the local repo is correct on this other machine. 回答1: You can

Revert local Sourcetree repo to master

旧巷老猫 提交于 2020-11-29 02:52:34
问题 I'm new to Sourcetree and have created a mess locally, with 7 ahead commits compared to the origin/master. I want to ignore and remove everything I've done locally and start again by reverting my local repo to the origin/master as it currently stands. How do I do this? Remark : I know the origin/master is correct since I have another machine next to me which I don't use to do commits and just did a pull from the origin/master, and the local repo is correct on this other machine. 回答1: You can

Revert local Sourcetree repo to master

泪湿孤枕 提交于 2020-11-29 02:47:49
问题 I'm new to Sourcetree and have created a mess locally, with 7 ahead commits compared to the origin/master. I want to ignore and remove everything I've done locally and start again by reverting my local repo to the origin/master as it currently stands. How do I do this? Remark : I know the origin/master is correct since I have another machine next to me which I don't use to do commits and just did a pull from the origin/master, and the local repo is correct on this other machine. 回答1: You can

Stash Git error “fatal: remote error: CAPTCHA required”

元气小坏坏 提交于 2020-08-21 05:52:47
问题 Attempting to pull from my Stash project, using the following commands: $ git remote add origin https://stash@stash.company.com/scm/~username/project.git $ git pull origin develop I'm prompted for my password, which I enter and then get the following error: Your Stash account has been marked as requiring a CAPTCHA to be solved before you may login again. This is typically caused by too many attempts to login with an incorrect password. The required CAPTCHA prevents your SCM client from

Stash Git error “fatal: remote error: CAPTCHA required”

|▌冷眼眸甩不掉的悲伤 提交于 2020-08-21 05:52:33
问题 Attempting to pull from my Stash project, using the following commands: $ git remote add origin https://stash@stash.company.com/scm/~username/project.git $ git pull origin develop I'm prompted for my password, which I enter and then get the following error: Your Stash account has been marked as requiring a CAPTCHA to be solved before you may login again. This is typically caused by too many attempts to login with an incorrect password. The required CAPTCHA prevents your SCM client from

Error in git: You can only push your own commits in this repository

被刻印的时光 ゝ 提交于 2020-05-26 10:54:11
问题 Yesterday I started to recieve errors when trying to push my commit to repo, how to fix it? And I am not admin of this repo. remote: You can only push your own commits in this repository remote: Commit commitName was committed by <myName> <my@users.noreply.github.com> To ssh://bitbucket.awg.ru/repo ! [remote rejected] branchName -> branchName (pre-receive hook declined) error: failed to push some refs to 'ssh://git@bitbucket.awg.ru/repo' Update Thanks everybody, the problem is solved. The

Jmeter and Bitbucket server load testing

徘徊边缘 提交于 2020-04-13 11:35:29
问题 I am new to Jmeter. I have a locally hosted Bitbucket server. Sometimes when Bamboo plan triggers concurrent git clone operations it's found that Bitbucket servers gets slow/unresponsive and I have to restart the service. I want to simulate this behavior by running jmeter tests against another locally created Bitbucket server. I would like to load test below scenario with Jmeter and bitbucket server. Load test git clone and git update operations against bitbucket server through Jmeter.