Migration from Intel Mac to M1 Mac: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 3: Line 3:
* {{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 command<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>
* {{kbd | key=which git}}
* {{kbd | key=/usr/local/bin/git --version}} to verify the path is working
* {{kbd | key=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}}


Download & install the Command Line Tools for Xcode 13.2.
Download & install the Command Line Tools for Xcode 13.2.

Revision as of 14:11, 3 March 2022

Upgrade macOS Homebrew[1]

  • brew update to update Homebrew
  • brew upgrade to update Homebrew packages

Upgrade Git command[2]

  • which git
  • /usr/local/bin/git --version to verify the path is working
  • vi ~/.zshrc and add this line alias git='/usr/local/bin/git'

Download & install the Command Line Tools for Xcode 13.2.

Further reading

References