Formally: How to merge changes from a 'forked' Git repository
- [Reference][6]
#! /usr/bin/env pwsh | |
function Prompt { | |
$promptColor, | |
$infoColor, | |
$warnColor, | |
$errorColor, | |
$defaultColor = | |
'Cyan', |
## References: | |
# https://stackoverflow.com/questions/9042542/what-is-the-difference-between-ntfs-junction-points-and-symbolic-links | |
# Good feature matrix for symbolic links | |
# https://ss64.com/nt/mklink.html | |
# Microsoft doco on Reparse Points | |
# https://docs.microsoft.com/en-gb/windows/win32/fileio/reparse-points | |
# Powershell 5.1 issue and solution deleting symbolic links... | |
# https://stackoverflow.com/questions/51160864/delete-children-directories-in-powershell-including-symlinks | |
# Hard Link to File |
KEY_PATH="${HOME}/.ssh" | |
# No error if directory exists | |
mkdir --parents ${KEY_PATH} | |
pushd ${KEY_PATH} > /dev/null | |
# Create/overwrite RSA key pair (4096 bits) | |
echo -e 'y\n' | ssh-keygen -b 4096 -t rsa -N "" -f id_rsa > /dev/null |
# Typically located at ~/.ssh/config | |
Host bitbucket.org | |
HostName altssh.bitbucket.org | |
Port 443 | |
User git | |
IdentityFile ~/.ssh/id_ed25519 | |
IdentitiesOnly yes | |
Formally: How to merge changes from a 'forked' Git repository
#! /usr/bin/env bash | |
# This script follows the construction of a monorepo using the facilities | |
# within npm. The reference, below, is a blog article, walking through | |
# the incremental process. | |
# https://daveiscoding.com/nodejs-typescript-monorepo-via-npm-workspaces | |
# This script deviates from the blog, where we use ES2022 and | |
# ECMAScript modules, and the package source code is located in the 'src' | |
# folder from the get-go. |