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
xxxxxxxxxx
Git 基本操作
資訊之芽 2022 Python 語法班
Author: Sean 韋詠祥
Note:
日期:2022-05-08
課程錄影
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Link: https://www.youtube.com/watch?v=b7NDvFd7bJw
安裝 Git 工具
macOS 安裝方式
先開啟 iTerm2 或 Terminal 終端機
輸入 git 指令,內建的 Xcode 將會跳出安裝資訊
Windows 安裝方式
搜尋 Git for Windows
Link: https://gitforwindows.org/
依指示安裝
基本上都下一步,編輯器這邊可以改成自己慣用的

Linux 安裝方式
相信你知道怎麼做的 :D
註冊 GitHub 帳號
網站:https://github.com/
填寫帳號資料
驗證碼:選出螺旋星系
收驗證信
個人分析資料
可點擊下方 Skip 跳過
基本 Bash 指令
先大概理解就好,也可以上網查「Bash XXX 用法」
Part 1
Part 2
Part 3
開始上課!
資訊之芽 2022 Python 語法班
Author: Sean 韋詠祥
你有沒有看過…
什麼是版本控制?
傳統中央控管型
分散式版本控制系統
核心使用概念
開始使用 Git
環境設定
環境設定(續)
建立第一個本地 Repo
Git Repository
稍微改點東西
先用編輯器打開
main.py
檔案讓他輸出 0 到 4 這五個數字,每次換行
完成後用 git 保存版本紀錄
需求變更
輸入:一個正整數 N
輸出:從 0 到 N-1 的數字,每次換行
再次修改
輸入:一個正整數 N
輸出:從 1 到 N 的數字,每次換行
建立 GitHub Repo
設定遠端 Repo 網址
加入說明檔案
LICENSE 授權條款
完成!
讓我們進到 Git 進階用法
Git-flow
Git Branch
小練習:
輸入前詢問「Input N: 」
輸出 0 到 N-1
Git Stash
Git Rebase
Thanks
投影片連結:https://hackmd.io/@Sean64/git-sprout2022
這份投影片以 創用 CC - 姓名標示 授權公眾使用,原始碼及講稿請見 此連結。