GitHubs free plan gives you as many projects repos as you want but all are

Githubs free plan gives you as many projects repos as

This preview shows page 507 - 510 out of 517 pages.

GitHub’s free plan gives you as many projects (repos) as you want, but all are publicly readable. Paid plans allow you to have private repos. If you are a student or a teacher, you can get a limited number of private repos by requesting a free educational account . To communicate with most cloud-based Git services, you add your public key to the service, usually through a browser-based interface. The corresponding private key on your development computer then allows you to create a remote copy of a repo there and push changes to it from your local repo. Other developers can, with your permission, both push their own changes and pull your changes and others’ changes from that remote.
Image of page 507
You’ll need to do the following steps to setup GitHub. This section assumes you have already setup an ssh keypair as directed in Section A.5 ; you should perform these steps from any computer holding the private key from which you want to access GitHub. 1. Using the Mac or Linux Terminal or the Git Bash terminal on Windows, tell Git your name and email address, so that in a multi-person project each commit can be tied to the committer: 1 git config --global user.name ’Andy Yao’ 2 git config --global user.email [email protected] 2. To create a GitHub repo that will be a remote of your existing project repo, fill out and submit the New Repository form and note the repo name you chose. A good choice is a name that matches the top-level directory of your project, such as myrottenpotatoes . 3. Back on your development computer, in a terminal window cd to the top level of your project’s directory (where you previously typed git init ) and type the following, replacing myusername with your GitHub username and myreponame with the repository name you chose in the previous step: 1 git remote add origin [email protected]:myusername/myreponame.git 2 git push origin master Note: If you’re accessing GitHub from within an organization whose firewall blocks ssh connections on TCP port 22—possible symptoms include error messages such as “Connection timed out” or “Connection refused” when you perform the GitHub access commands below this article explains how you can instead perform these operations over HTTP and HTTPS, which are not blocked by most firewalls. The disadvantage is that you’ll have to type your GitHub password for each operation, rather than relying on ssh key exchange. If you find it necessary to use this alternate method, you would replace the first command above with the following: 1 git remote add origin The first command tells Git that you’re adding a new remote for your repo located at GitHub, and that the short name origin will be used from now on to refer to that remote. (This name is conventional among Git users for reasons explained in Chapter 10 .) The second command tells Git to push any changes from your local repo to the origin remote that aren’t already there.
Image of page 508
These account setup and key management steps only have to be done once. The process of creating a
Image of page 509
Image of page 510

You've reached the end of your free preview.

Want to read all 517 pages?

  • Spring '19
  • Dr.Marcos

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors