By Rachael Pai 2017/03/27
那麼要先了解什麼是 Git ?
Wiki : GitHub是一個透過Git進行版本控制的軟體原始碼 代管服務
提供 Git 的雲端服務的網站
有以下太太太簡單的安裝方法
git clone https://github.com/rladiestaipei/R-basic.git
R-Basic 共編 git 實作
git clone https://github.com/rladiestaipei/R-basic.git
使用 git status 看那些檔案有變化
git status
使用 git diff 看看改了什麼
git diff
git add filename
git add . //加入全部被修改過的檔案
git commit -m "Add chapter 4"
git log
上傳到遠端資料庫
git pull
git push
git log -r
git checkout <hashnum>
git checkout e3ec69f
## 列目前local 的 branches 跟所在 branch
git branch
## 開一個新的 branch
git branch <branchname>
## 開一個新的 branch 並且checkout到那個 branch
git checkout -b <branchname>
rladies
github
git
tutorial
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.
Do you want to remove this version name and description?
Syncing