Bureaucrats, confirmed, Administrators
4,558
edits
(more git log examples) |
(quick howto on moving a project to GitHub) |
||
Line 111: | Line 111: | ||
-c gc.pruneExpire=now gc | -c gc.pruneExpire=now gc | ||
</source> | </source> | ||
== Put your project on GitHub == | |||
Been hacking away on a project and now it's time to unveil it? Here are the quick and easy steps to get your local repo into your GitHub account. | |||
<source lang="bash"> | |||
# first make a "bare" clone | |||
# from your server | |||
git clone --bare greg@example.com:/var/www/baz.com/www/project | |||
# or from a local directory | |||
git clone --bare /tmp/project | |||
# produces project.git directory | |||
cd project.git | |||
# push that to your new project (created via browser at GitHub.com) | |||
git push --mirror https://github.com/USER/project.git | |||
# go back to the original project folder | |||
cd /tmp/project | |||
# optionally remove local remotes that are no longer needed | |||
git remote remove origin | |||
# add GitHub as a remote named 'github' (assuming SSH key-based auth) | |||
git remote add github git@github.com:USER/project.git | |||
# pull in anything from 'upstream' (assuming that now GitHub is the canonical source) | |||
git pull github | |||
# push any changes up | |||
git push --set-upstream github master | |||
</source> | |||
Now create a fine README file using [[pandoc]] to convert your webpage to [[Markdown]] | |||
<source lang="bash"> | |||
pandoc --standalone --read html https://freephile.org/barcode/index.html -o README.md | |||
</source> | |||
{{References}} | {{References}} | ||
[[Category:Development]] | [[Category:Development]] |