git reset --soft, any changes are left as staged (or "ready to commit")git reset --mixed, any changes are left as unstagedgit reset --hard, any changes are discarded
Example:
git reset --soft HEAD^| alias la="ls -a" | |
| mkcd() { | |
| mkdir $1 && cd $1 | |
| } |
| const { | |
| chain, | |
| filter, | |
| count, | |
| groupBy, | |
| map | |
| } = require("./chaining") | |
| const transforms = [ |
| public abstract record StronglyTypedId<TValue>(TValue Value) | |
| where TValue : notnull | |
| { | |
| public override sealed string ToString() => $"{Value}"; | |
| } |
| function round(value, precision) { | |
| return Number(Math.round(value + "e" + precision) + "e-" + precision) | |
| } | |
| function strictCompare(left, right) { | |
| console.log(`strictCompare(${left}, ${right})`); | |
| return left === right; | |
| } |
| function Deferred() { | |
| this.resolve = null; | |
| this.reject = null; | |
| this.promise = new Promise((resolve, reject) => { | |
| this.resolve = resolve; | |
| this.reject = reject; | |
| }); | |
| } |
| import { wrapInDisablerProxyFactory } from "./wrapInDebugModeProxy" | |
| describe("Enable/disable functions", () => { | |
| const obj = { | |
| flipTheFlag(target) { | |
| target.flag = true | |
| }, | |
| inner: { | |
| anotherFlipTheFlag(target) { |
This post takes you through creating a partition, formatting it and finally mount it in the filesystem.
These procedures where tested on Linux Mint 19
$ sudo fdisk -l
The result will vary depending on the number of disk you have. On my computer I got these three entries: