Inspired from containers/skopeo#715 (comment)
choco install -y msys2 golang
0. Install git-filter-repo from https://github.com/newren/git-filter-repo | |
Do not perform these steps in an existing clone | |
1. Create a new empty repository | |
git init /path/to/your/new/main/repository | |
2. Clone the repository you want to import: | |
git clone https://github.com/username/repository.git | |
cd repository |
Inspired from containers/skopeo#715 (comment)
choco install -y msys2 golang
#!/usr/bin/env bash | |
# this will overwrite all the settings it touches | |
# the name of the user to run these commands as | |
TARGET_USER=jane | |
# to start the desktop session remotely | |
echo -e "[daemon]\nAutomaticLogin=${TARGET_USER}\nAutomaticLoginEnable=true\n" | sudo tee /run/gdm/custom.conf | |
sudo systemctl restart gdm |
Copy of https://dev.to/bowmanjd/install-fedora-on-windows-subsystem-for-linux-wsl-4b26
We first need a rootfs (the base filesystem for the Linux distro in question, in this case Fedora). There a few ways to get this.
The rootfs embedded in the Fedora-Container-Base-Generic project seems to work well, and is my preferred method, as it offers a lot of flexibility. I start with the most recent stable version of Fedora that auto-built successfully. If you want to be bleeding edge, you can download the latest Rawhide image that built successfully, but I am using the latest Fedora 35 for now. The "State" column indicates build success. Pick the latest with a green checkmark.
1.txt |
1.txt |
[ CA_default ]
dir = ./CA # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/CA/index.txt # database index file.
#unique_subject = no # Set to 'no' to allow creation of
# several ctificates with same subject.
new_certs_dir = $dir/newcerts # default place for new certs.
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: