anchor89 / githubhub Goto Github PK
View Code? Open in Web Editor NEWUse private repository with a free account.
Use private repository with a free account.
if my local secret repository is missing by accident, How should I recover that?
After running $./github.sh -h
, I found this:
[INFO]BASE=/Users/Johnny/code/github/root-test/root
USAGE:
github.sh init
github.sh push|pull repo_name
github.sh init: Create git.private.pem and git.public.pem under ~/keys. Then create leaf directory under this direcotry and git-clone root from Github.
NOTE: A Github repo called root should be created on github.com beforehand.
github.sh push repo_name: Make directory repo_name under leaf/ to an compressed archived file into root/ with the same name.
Then add this archived file to git and push it to remote.
github.sh pull repo_name: Pull the update files from github to root. Decompress file repo_name under root/ to leaf/.
If I re-init a bare secret repo like README.md file suggested, then I use ./github.sh pull secret
, It's still not working, the secret folder will be deleted by this pull process.
Please Help!
After several trials, I got what went wrong and fixed it. Here I share my experiences:
root
under your root repositroy before you execute $./github.sh push yourRepo
leaf
when you want to recover your local center repositroy../github.sh push yourRepo
will update everything.notes: I try this on mac.
BTW: great work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.