Migration from Intel Mac to M1 Mac: Difference between revisions
Jump to navigation
Jump to search
no edit summary
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== Upgrade the softwares == | |||
=== Upgrade Homebrew === | |||
Upgrade [https://brew.sh/index_zh-tw macOS Homebrew]<ref>[https://osxdaily.com/2021/02/13/how-update-homebrew-mac/ How to Update Homebrew on Mac]</ref> | Upgrade [https://brew.sh/index_zh-tw macOS Homebrew]<ref>[https://osxdaily.com/2021/02/13/how-update-homebrew-mac/ How to Update Homebrew on Mac]</ref> | ||
* {{kbd | key=brew update}} to update Homebrew | * {{kbd | key=brew update}} to update Homebrew | ||
* {{kbd | key=brew upgrade}} to update Homebrew packages | * {{kbd | key=brew upgrade}} to update Homebrew packages | ||
=== Upgrade Git === | |||
Upgrade Git command<ref>[https://git-scm.com/download/mac Git - Downloading Package]</ref><ref>[https://apple.stackexchange.com/questions/433751/git-not-working-on-m1-chip-after-migration terminal - Git not working on M1 chip after migration - Ask Different]</ref><ref>[https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line How to update Xcode from command line - Stack Overflow]</ref> | Upgrade Git command<ref>[https://git-scm.com/download/mac Git - Downloading Package]</ref><ref>[https://apple.stackexchange.com/questions/433751/git-not-working-on-m1-chip-after-migration terminal - Git not working on M1 chip after migration - Ask Different]</ref><ref>[https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line How to update Xcode from command line - Stack Overflow]</ref> | ||
* {{kbd | key=which git}} to find the location where git was installed | * {{kbd | key=which git}} to find the location where git was installed | ||
| Line 12: | Line 14: | ||
* {{kbd | key=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}} | * {{kbd | key=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}} | ||
Example | Example output of {{kbd | key=/usr/local/bin/git --version}} | ||
<pre> | <pre> | ||
| Line 24: | Line 26: | ||
* {{kbd | key=/usr/bin/git --version --version}} to verify the path is working | * {{kbd | key=/usr/bin/git --version --version}} to verify the path is working | ||
Example | Example output of {{kbd | key=/usr/bin/git --version}} | ||
<pre> | <pre> | ||
| Line 30: | Line 32: | ||
</pre> | </pre> | ||
=== Reinstall the app which not support intel processor === | |||
Reinstall the app which not support intel processor e.g. | Reinstall the app which not support intel processor e.g. | ||
* [https://docs.docker.com/desktop/mac/apple-silicon/ Docker Desktop for Apple silicon] | * [https://docs.docker.com/desktop/mac/apple-silicon/ Docker Desktop for Apple silicon] | ||