Tags

6 pages

Git

Git Single Configuration Proxy

Accessing GitHub domestically is slow, and you can speed it up by configuring a proxy. There’s also another way: find a domestic hosting platform like CodeOcean or Coding. Configure the corresponding build pipeline to sync your code to GitHub. I’ve been using ‘coding’ for many years – its interface is simple, and they recently released an announcement

Git Submodule Merge History Lost

There’s a Git repository locally where submodules were in temporary branches during the initial pull. I made commits on that temporary branch, and then switched back to the main branch. However, those committed changes seem to be lost and cannot be found within the main branch. I also can’t find any record of that temporary branch. Solutions After committing to a temporary branch within the Git submodule and switching back to the main branch, these commits are no longer found.

Git Disable HTTP Repository

Updated habit software version, unsure which Git version to start from, prohibiting fetching code from Http repositories. fatal: Unencrypted HTTP is not supported for GitLab. Ensure the repository remote URL is using HTTPS Background Introduction Environment: Windows platform, I’ve always used Tiny Turtle to operate Git, and key configuration was also handled through it. I previously created a script to batch update local repositories. Previous article link:

A Collection of Less Commonly Used Git Commands

Less commonly used, but very useful git commands Reinstalling the system caused changes to folder ownership on Windows. The new version of git has added security checks, prompting an unsafe state and preventing further operation. git config --global --add safe.directory git config --global --add safe.directory "*" New Computer Saving Account Password Information git config --global credential.helper store If the saved information needs to be updated, first clear out the old credentials