Difference between revisions of "GitHub"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(Created page with "<hide> page type::article thing type::web site thing type::service platform::Git </hide> ==About== GitHub is a web site which provides free Git reposit...")
 
(issue)
Line 24: Line 24:
 
  git remote add origin <nowiki>https://</nowiki>github.com/{{arg|username}}/{{arg|project_name}}.git
 
  git remote add origin <nowiki>https://</nowiki>github.com/{{arg|username}}/{{arg|project_name}}.git
 
  git push -u origin master
 
  git push -u origin master
 +
==Discussion==
 +
* '''2017-07-15''' [https://where.coraline.codes/blog/my-year-at-github/ Antisocial Coding: My Year at GitHub]

Revision as of 10:41, 1 November 2017

About

GitHub is a web site which provides free Git repository hosting for open-source projects and a number of other services.

Links

Notes

When you create a new repository in GitHub, the site will provide you with the necessary commands to create a new repository on your local machine and update the GitHub repository from it. The commands are generally of the following form:

create a new local repository:

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/<username>/<project_name>.git
git push -u origin master

update the GitHub repository (i.e. "push" your local repo to GitHub):

git remote add origin https://github.com/<username>/<project_name>.git
git push -u origin master

Discussion