![]() If you did not, follow the instructions in the section below. ![]() Clone repositories using HTTPSĪfter creating a new repo on GitHub, clone it using: git clone ![]() These instructions are from the official documentation. git config -global credential.helper osxkeychain To prevent git from asking for your username and password every time you push a commit you can cache your credentials by running the following command, as described in the instructions. There are also instructions for using SSH. To push code to your GitHub repositories, we will use the recommended HTTPS method. Git config -global user.email will get added to your. Next, we'll define your Git user (should be the same name and email you use for GitHub): git config -global user.name "Your Name Here" When done, to test that it installed properly you can run: git -versionĪnd which git should output /usr/local/bin/git. What's a developer without Git? To install, run: brew install git
0 Comments
Leave a Reply. |