Open main menu

Changes

1,185 bytes added ,  23:18, 30 March 2017
quick howto on moving a project to GitHub
-c gc.pruneExpire=now gc
</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}}
[[Category:Development]]
4,558

edits