mirror of
https://github.com/MunGell/awesome-for-beginners.git
synced 2026-01-27 22:08:09 -08:00
22 lines
555 B
Bash
Executable File
22 lines
555 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euof pipefail
|
|
|
|
profilename="$1"
|
|
projectname="awesome-for-beginners"
|
|
branchname="${2:-main}"
|
|
|
|
fullname="${profilename}/${branchname}"
|
|
|
|
branchname="${fullname}-branch-copy"
|
|
|
|
git checkout main
|
|
git checkout -b "${branchname}"
|
|
git remote add "${profilename}" "https://github.com/${profilename}/awesome-for-beginners.git"
|
|
git fetch "${profilename}"
|
|
git merge --no-gpg "${fullname}" -m "Merge ${fullname} into ${branchname}"
|
|
git remote remove "${profilename}"
|
|
git fetch --prune
|
|
git push --set-upstream origin "${branchname}"
|
|
git checkout main
|