Migration from Intel Mac to M1 Mac: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
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> | 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=which git}} to find the location where git was installed | ||
* (optional) {{kbd | key=brew uninstall git}} | |||
* (optional) {{kbd | key=brew install git}} | |||
* {{kbd | key=/usr/local/bin/git --version}} to verify the path is working | * {{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>}} | * {{kbd | key=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}} |
Revision as of 14:12, 3 March 2022
Upgrade macOS Homebrew[1]
- brew update to update Homebrew
- brew upgrade to update Homebrew packages
Upgrade Git command[2]
- which git to find the location where git was installed
- (optional) brew uninstall git
- (optional) brew install 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.