start new:
tmux
start new with session name:
tmux new -s myname
| package brodcastdb | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| type ThreadData struct { | |
| // Broadcast channel | |
| broadcastChannel chan interface{} |
| # Invoke-Expression (&starship init powershell) | |
| # Starship assumes UTF-8 | |
| [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 | |
| function global:prompt { | |
| $env:PWD=Get-Location | |
| $out = $null | |
| # @ makes sure the result is an array even if single or no values are returned | |
| $jobs = @(Get-Job | Where-Object { $_.State -eq 'Running' }).Count |
| { | |
| "AED": "United Arab Emirates Dirham", | |
| "AFN": "Afghan Afghani", | |
| "ALL": "Albanian Lek", | |
| "AMD": "Armenian Dram", | |
| "ANG": "Netherlands Antillean Guilder", | |
| "AOA": "Angolan Kwanza", | |
| "ARS": "Argentine Peso", | |
| "AUD": "Australian Dollar", | |
| "AWG": "Aruban Florin", |
| // @flow | |
| // InstanceOf Operator Type Flow doesn't have. | |
| // What this does? Calls constructor and defines type from it. | |
| export type InstanceOfClassExtractor = <C>(Class<C>) => C; | |
| export type InstanceOf<Cls: Class<any>> = $Call<InstanceOfClassExtractor, Cls>; | |
| export type DateTimeInstance = InstanceOf<Class<DateTime>>; | |
| export type DateString = string; | |
| export type Timestamp = number; | |
| export type DateTimeType = DateString | Timestamp | Date | DateTimeInstance; |
$ git checkout --orphan NEWBRANCH
$ git rm -rf .
--orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.
You can then start adding files and commit them and they will live in their own branch. If you take a look at the log, you will see that it is isolated from the original log.
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |