Self-built bitbucket data center to create git warehouses in batches - bitbucket-server

I have hundreds of git repositories waiting to be migrated from github to a local self-built bitbucket server.
Is there any API to help create these blank repositories in batch on local bitbucket server?

Related

Why does adding a repository in GitHub Desktop locally not show my pull requests

So I have a GitHub Enterprise account. On GitHub Desktop when I clone my repository from the server it goes under Enterprise and I can see the list of branches and Pull requests as shown below.
If I simply add an existing repository from my local machine onto GitHub Desktop, then it goes under Other and now I can't see the option for showing me my pull requests.
I don't want to have to reclone all my repo because that just seems silly but is there a way I can still see if there's any pull request from my repo that I simply added in from my local machine?

GitHub Actions: How to let a local server pull the change automatically from remote branch

I have the followings.
Apache server hosted on centos
GitHub (GitHub Actions)
An web app hosted on the local apache server.
Every time I make a change to a local branch and push to remote master branch in GitHub, I have to ssh into the apache server and run git pull origin master. What is the best way and how to set up an automatic pull/deployment on the local server so that it will listen and pull the change automatically?
I have read about GitHub Actions self-hosted runner and ssh solution. but I am not sure how to achieve this in the most efficient way.
You can use GitHub actions to do this by specifically using the action SFTP-Deploy which essentially copies your code from your GitHub repo and places it in your apache server directory.

Copy the entire master branch from one GitHub enterprise server to another GitHub enterprise server in a different location

We have two hosted GitHub enterprise servers on VMWare servers in a distinct location. We would like to copy all master branch from one GitHub enterprise server to another GHE (maybe every day once). Also, we need to configure alerts to notify in case of copy failure, network issues, etc.
Could you please help me to implement this?
git clone --bare https://github-dev.assr.com/assr-ghactions/setup-java.git
git push --mirror https://github-qa.assr.com/assr-ghactions/setup-java.git

How to update local repository using GitLab UI?

I was looking to update my local repository using GitLab UI. Is this possible without using the command line or any other client application such as GitHUB desktop.
Thanks
GitLab UI represents first your remote repos, as hosting by the remote Git repositories hosting servers.
It can show you the git command to execute in order to clone your Git repository, but you would still need to use that URL in a local tool or CLI, like git clone /url/gitlab/repo.

Export mercurial local repo to GitHub/Bitbucket

I have a local mercurial repo on my desk, and I want to upload it to bitbucket, or github, so it can be viewed on the web.
So far I am stucked at the import phase, both GitHub or Bitbucket request that I provide an URL for my repo (i'd have prefer a simple path on my disk, to the repo).
I've started a local server but then the address:
http://localhost:8000/Myrepo/
failed to be acceded.
I know about the tortoiseHg Hg-Git plugin and I tried to make a push git://... but it failed too.
So my first question is: how to I put my mercurial repo on the web so it can be imported ?
My second question is: what's the point of having a bitbucket / github account if I have to set an online, public, mercurial server on the web to push to them ?
What I would like is to continue to work locally, then push to bitbucket / github, without having to set up a mercurial server.
Thanks
Problem: You have an existing local (mercurial or git) repo and want to transfer it to bitbucket
Short answer:
Create a new empty(!) repository in bitbucket
Copy the bitbucket URL of the new empty repo
Push your existing old repo to the address of the new bitbucket repo
Now the bitbucket repo is overwritten with the history of your existing (old) repo.
I just tested it and it worked perfectly :-)
The detailed answer to your Problem is explained here:
https://confluence.atlassian.com/bitbucket/push-versioned-code-to-an-empty-repository-877177145.html