Git, sudo and alias adventures on an updated macOS Sierra.

in #python6 years ago (edited)

SUDO make me a sandwitch
https://xkcd.com/149/

My adventures in learning Python continue :D

So now to learn a little more I find myself installing git... Apple git is usually behind and it gave me lots of headache (like not allowing me to set some global configurations). I decide for the latest version from https://git-scm.com/.

The installation comes with the documentation which implies, that some of the earlier versions of macOS versions (Yosemite and earlier) might not be able to access < class="gr_ gr_3 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="3" data-gr-id="3">git normally after the installation and you might get a message: 

'The "git" command requires the command line developer
tools. Would you like to install the tools now?"

 Even though my system is updated to OS Sierra I still get this message ¯\_(ツ)_/¯ 

To go around the issue it is suggested to use: 

sudo mv /usr/bin/git /usr/bin/git-system

 which doesn't work :D because the newer versions of macOS come with SIP and don't allow access to several parts of the system even for Simon. 

I don't have the patience to disable SIP and it again, which some people suggest. (yeah, I'm a bit scared to break something again, like last time ^^)

Instead I find and use a simpler solution:

 alias git='/usr/local/bin/git'

It worked like magic! 

But yeah I'm a little disappointed that sudo didn't work.

Makes me want to update the sandwich comic answer to "operation denied, get the sandwich yourself" :D 



Posted from my blog with SteemPress : https://anmitsu.club/2018/12/13/git-sudo-and-alias-adventures-on-an-updated-macos-sierra/
Sort:  

You got a 24.81% upvote from @ocdb courtesy of @anmitsu!

@ocdb is a non-profit bidbot for whitelisted Steemians, current max bid is 15 SBD and the respective amount in Steem.
Check our website https://thegoodwhales.io/ for the whitelist, queue and delegation info. Join our Discord channel for more information.

If you like what @ocd does, consider voting for ocd-witness through SteemConnect or on the Steemit Witnesses page. :)

Congratulations @anmitsu! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 200 upvotes. Your next target is to reach 300 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @anmitsu! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 100 as payout for your posts. Your next target is to reach a total payout of 250

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @anmitsu! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You got more than 100 replies. Your next target is to reach 200 replies.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!