To store and share code and content we use Github.com. The idea is to make development transparent and add to it social networking experience:
for more info about Github: Complete Guide to Open Source
App code and content are separated into two independent projects (repositories):
You could notice this links in Install section. After installation they both are on your computer, but still conected to our repositories.
If you run from project folder command:
git remote -v
you'll see a link to the remote repository associated with your one.
That means, that you can easilly update your app, by running command:
git pull
All code from our Github repository will be loaded on your computer.
Notice: if you changed code, this operatation will require from you some additional actions, like resolve conflicts etc…
The situation with content is completely different, because it connected to a demo (example) and you wont update your content from it. Than it is better to remove the connection:
cd content
git remote rm origin
You might want to create your own content repository to collaborate on with other people. After you do it on Github and get link to your repo, execute:
git remote add origin link-to-your-repo.git
After you do some changes in your local files (/content
), for upload them to github, run:
git push
If someone else did changes and updloaded them to github, for download them, run:
git pull
Be carefull from where you execute commands, because there is two repositories, for the app and for content. Notice the path before blinking cursor: is it folder for the app folder or content?
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing