Skip to content

Instantly share code, notes, and snippets.

@Lorenzo501
Created May 20, 2024 14:32
Show Gist options
  • Save Lorenzo501/0d56646412b9dd2654ff9dc46d238a8b to your computer and use it in GitHub Desktop.
Save Lorenzo501/0d56646412b9dd2654ff9dc46d238a8b to your computer and use it in GitHub Desktop.

Fork Privately

https://github.com/new/import

Undo Latest Commit

Press . on a repo webpage to open it in github.dev, go to the terminal, click on the btn to open GitHub Codespaces, click on the option 2 cores, 8 GB RAM, 32 GB storage, open the terminal there, copy & paste the following (it will show the pending change and asks you to confirm before it deletes the previous commit entirely, even from history):

git reset --hard HEAD~1  
git push origin -f

Then go to https://github.com/codespaces and delete the active codespace.

URL-hacking topics

Append ?q=[TOPIC] to the topic URL to combine the results of two topics.
https://github.com/topics/unity?q=shader is my favourite (looks for repos tagged with #unity and #shader).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment