Git is one of those things you will for sure underestimate. I highly recommend you take a few minutes to contemplate on why you chose to do this crap to begin with! Git Commands To make sure it worked you can run the following command: ssh -T you get a message that looks like the message below you are good to go! Git SSH success message Then hop over to, login, go to settings, SSH and GPG keys, hit ‘New SSH key’, give a title paste the key that you had copied and finally hit the ‘Add SSH Key’ button. Make sure to copy every character from beginning to end! Copy the content by running the following command and then copying what is being outputted to the screen. It will ask you a question, just hit enter then it will ask you for a password. Don’t include the brackets! ssh-keygen -C Run this command replacing part with your email. If you don’t have key as in you got the No such file or directory message then do the following: I purposely misspelled the id_rsa.pub name so I can show you what message you would get. If you don’t see a …No such file or directory message you are good. To do so run the following command ls ~/.ssh/id_rsa.pub Let’s see if you have a (SSH) key already. You have to create a (SSH) key and tell GithHub about it so it knows it’s truly you whenever you want to ‘save’ your code. If you see your username and email then move on from this section otherwise run the following commands git config -global user.name "Your Name" git config -global user.email SSH Key stuff…Uggghhh git config -get user.name git config -get user.email In that case run the following commands to see if your username and email have been set already. But before you do that you might be wondering if you had already done so in the past. You must tell git your username and email.
#How to see user in git on mac install
sudo brew install git Git is finally installed, now what? Set your username and email So you would just prepend the original command with sudo. Sometimes you can those resolved by just running the command with sudo. One possible problem you might run into is permission related stuff. There is a possibility you will run into weird issues trying to install git or even brew. Run the following command to install git brew install git Once you have brewed installed you can install git.
Here is how you can install if you don’t have brew installed. So run the following to see if you have brew installed already. For that you can just use the –version command again. But before you install brew check if you have it already. Otherwise here is how you can install git on a mac. If you saw the git version then skip this section. If you get a version number back you are good to go. Pull up a terminal and run the following command git -version You are a new developer who needs to start working with Git (on a Mac) and I am a “senior entry-level” developer who can hopefully help.