■ Push the new branch, set local branch to track the new remote
git push -u origin main
git push --set-upstream origin main
■ Delete remote branch
git push origin :master
git push origin --delete master
I got this.
❯ git push origin :master
To https://github.com/your/project
! [remote rejected] master (refusing to delete the current branch: refs/heads/master)
error: failed to push some refs to 'https://github.com/your/project'
Switch default branch master to main at https://github.com/your/project
■ Show status
❯ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
❯ git branch -a
* main
remotes/origin/main
❯ git branch -l
* main
❯ git branch -r
origin/main
■ Conclusion
Repository default branch
Choose the default branch for your new personal repositories. You might want to change the default name due to different workflows, or because your integrations still require “master” as the default branch name. You can always change the default branch name on individual repositories.
Android Studio Electric Eel | 2022.1.1
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
documentation.show.toolbar=true
Non-Bundled Plugins:
org.moe (1.5.2)
org.jetbrains.compose.desktop.ide (1.2.2)
com.jetbrains.kmm (0.5.1(221)-61)
表示されてるように Android Studio に同梱されてる JDK は OpenJDK 11.0.15 改 by JetBrains という感じでしょうか。
公式 developers.android.com には以下のように書かれています。
Android Studio 2.2 以降には最新バージョンの OpenJDK のコピーがバンドルされています。この JDK バージョンを Android プロジェクトで使用することをおすすめします。https://t.co/SlOhcOr3y1
e: This version (1.4.0-alpha01) of the Compose Compiler requires Kotlin version 1.7.21
but you appear to be using Kotlin version 1.7.21 which is not known to be compatible.
Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
https://developer.android.com/jetpack/androidx/releases/compose-kotlin#pre-release_kotlin_compatibility
1. os settings keyboard modifier keys
caps lock → control
2. ⌘英かな (os app)
left command → 英数
right command → かな
control + p → arrow up
control + n → arrow down
control + f → arrow right
control + b → arrow left
3. os settings keyboard app shortcuts
command + v → Paste and Match Style
shift + command + v → Paste
※ Notes.app 向けに paste 2つを入れ替える。
4. app settings
- Android Studio
Settings… - Keymap
→ macOS のままにする
- Chrome
disable shortcut (chrome extension)
command + p → Do nothing
command + d → Do nothing
command + s → Do nothing
※ 英かな切り替え直後の意図しない動作を防ぐ。
指がホームポジションから離れることがずっと気になっていました。
キーマップを自由にカスタマイズできる ⌘英かな や Karabiner-Elements を使うことで カーソルキーを使った範囲選択が shift + control + p/n/f/b でできるようになったことで IDEA/Android Studio 上でエディタの Keymap を デフォルトである macOS のまま利用できるようになったことがうれしい。