Skip to content

Instantly share code, notes, and snippets.

View StrongFennecs's full-sized avatar
🦊

Fennecs StrongFennecs

🦊
View GitHub Profile
git checkout feat/branch
git diff main > ../branch.patch
git checkout main
git branch -D feat/branch
git checkout -b feat/branch
patch -p1 < ../branch.patch
git add .
git commit -m "description"
git push -f --set-upstream origin feat/branch
@StrongFennecs
StrongFennecs / private_fork.md
Created November 21, 2022 05:13 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git