-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
#!/bin/bash # Define an array that maps GitLab and GitHub repository URLs declare -A repo_map=( ["https://gitlab.com/username/repo.git"]="https://github.com/username/repo.git" ["https://gitlab.com/username/other-repo.git"]="https://github.com/username/other-repo.git" ) # Loop through the array and mirror each GitLab repository to its corresponding GitHub repository for gitlab_url in "${!repo_map[@]}"; do github_url="${repo_map[$gitlab_url]}" repo_name="$(basename "$gitlab_url" .git)" # Clone the GitLab repository git clone --mirror "$gitlab_url" # Change to the local repository directory cd "$repo_name.git" # Add the GitHub repository as a remote git remote add github "$github_url" # Push all branches and tags to the GitHub repository git push --mirror github # Remove the local repository directory cd .. rm -rf "$repo_name.git" done
#!/bin/bash # Define an array that maps GitLab and GitHub repository URLs declare -A repo_map=( ["https://gitlab.com/username/repo.git"]="https://github.com/username/repo.git" ["https://gitlab.com/username/other-repo.git"]="https://github.com/username/other-repo.git" ) # Loop through the array and mirror each GitLab repository to its corresponding GitHub repository for gitlab_url in "${!repo_map[@]}"; do github_url="${repo_map[$gitlab_url]}" repo_name="$(basename "$gitlab_url" .git)" # Clone the GitLab repository git clone --mirror "$gitlab_url" # Change to the local repository directory cd "$repo_name.git" # Add the GitHub repository as a remote git remote add github "$github_url" # Push all branches and tags to the GitHub repository git push --mirror github # Remove the local repository directory cd .. rm -rf "$repo_name.git" done
#!/bin/bash # Define an array that maps GitLab and GitHub repository URLs declare -A repo_map=( ["https://gitlab.com/username/repo.git"]="https://github.com/username/repo.git" ["https://gitlab.com/username/other-repo.git"]="https://github.com/username/other-repo.git" ) # Loop through the array and mirror each GitLab repository to its corresponding GitHub repository for gitlab_url in "${!repo_map[@]}"; do github_url="${repo_map[$gitlab_url]}" repo_name="$(basename "$gitlab_url" .git)" # Clone the GitLab repository git clone --mirror "$gitlab_url" # Change to the local repository directory cd "$repo_name.git" # Add the GitHub repository as a remote git remote add github "$github_url" # Push all branches and tags to the GitHub repository git push --mirror github # Remove the local repository directory cd .. rm -rf "$repo_name.git" done
#!/bin/bash # Define an array that maps GitLab and GitHub repository URLs declare -A repo_map=( ["https://gitlab.com/username/repo.git"]="https://github.com/username/repo.git" ["https://gitlab.com/username/other-repo.git"]="https://github.com/username/other-repo.git" ) # Loop through the array and mirror each GitLab repository to its corresponding GitHub repository for gitlab_url in "${!repo_map[@]}"; do github_url="${repo_map[$gitlab_url]}" repo_name="$(basename "$gitlab_url" .git)" # Clone the GitLab repository git clone --mirror "$gitlab_url" # Change to the local repository directory cd "$repo_name.git" # Add the GitHub repository as a remote git remote add github "$github_url" # Push all branches and tags to the GitHub repository git push --mirror github # Remove the local repository directory cd .. rm -rf "$repo_name.git" done