Monday, December 25, 2023

My Git cheat sheet

My Git cheat sheet

Undo changes and remove untracked files
c:\> git reset --hard HEAD
c:\> git clean -fd

Push local branch to remote
c:\> git push -u origin feature/featurename

Clone and checkout remote
c:\> git clone --branch v1.3.9 --single-branch https://github.com/open62541/open62541.git

To view the name of the head (detached like above)
c:\> git show -s --pretty=%d HEAD

No comments:

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04 I am planning to run qemu-system-ppc to play around QEMU ...