Skip to content

Often upgit fails to upload all files I pass it. Wondering if the [replacements] option in config.toml would help? Also need help with the replacement format. #88

@futuremotiondev

Description

@futuremotiondev

I am automating upgit with powershell and the upload process is extremely slow.

My connection to GitHub through the browser is lightning fast, and when I push my repositories from the git command-line it's also very fast. I don't see why upgit is struggling here.

For instance, I just passed it about 20 SVG files at about 1-2KB per file, and it took something like 40 seconds to complete.

Also, when I pass it a large volume of files, many fail to upload. I'm not sure what the cause is.

So, my question is how to configure the "replacements" option:

# If your network access to Github is abnormal or sluggish, you can try the following CDN acceleration.
# [replacements]
# "raw.githubusercontent.com" = "cdn.jsdelivr.net/gh"
# "/master" = "@master"

Should the "/master" = "@master" line correspond to my branch name? The branch I want to upload to is main. So, should I set the config like this:

# If your network access to Github is abnormal or sluggish, you can try the following CDN acceleration.
[replacements]
"raw.githubusercontent.com" = "cdn.jsdelivr.net/gh"
"/main" = "@main"

Or should I leave the fourth line like this:

# If your network access to Github is abnormal or sluggish, you can try the following CDN acceleration.
[replacements]
"raw.githubusercontent.com" = "cdn.jsdelivr.net/gh"
"/master" = "@master"

Any help or guidance extremely appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions