Public notes: Difference between revisions

From Notes
Jump to navigation Jump to search
+
 
Line 1: Line 1:
== Git ==
=== Committed to the wrong branch ===
<syntaxhighlight>
git reset HEAD~1
</syntaxhighlight>
and then can just do the normal
<syntaxhighlight>
git checkout -b {task number} origin/master
</syntaxhighlight>
== Misc ==
== Misc ==
* https://notes.theresnotime.co.uk — my ''other'' notes ;p
* https://notes.theresnotime.co.uk — my ''other'' notes ;p

Latest revision as of 11:52, 25 April 2025

Git

Committed to the wrong branch

git reset HEAD~1

and then can just do the normal

git checkout -b {task number} origin/master

Misc

Great pages/guides