Editing
Migration from Intel Mac to M1 Mac
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== 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> * {{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=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}} Example output of {{kbd | key=/usr/local/bin/git --version}} <pre> git version 2.35.1 </pre> Download & install the Command Line Tools for Xcode 13.2. * Browse [https://developer.apple.com/download/all/ More - Downloads - Apple Developer], download and install Xcode 13.2 * Browse [https://developer.apple.com/download/all/ More - Downloads - Apple Developer], download and install Command Line Tools for Xcode 13.2 * {{kbd | key=/usr/bin/git --version --version}} to verify the path is working Example output of {{kbd | key=/usr/bin/git --version}} <pre> git version 2.32.0 (Apple Git-132) </pre>
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information