--- tags: 109-1, note --- # 共筆 <!-- 這個註解以上的不要動,下面隨便你們怎麼做筆記。 --> > 2020-10-30 TENET 共筆搬家到[這裡](https://hackmd.io/ItdCYM54SDuCQA6nGCi_8Q#%E5%85%B1%E7%AD%86%E7%A7%BB%E5%85%A5%E5%8D%80)了 ## 有什麼新想法嗎? 有沒有人幫我排版**QQㄋㄟㄋㄟ好喝到咩噗茶** HTML 第一堂 CSS 第二堂 GIT 第三堂 git 指令 ### Command Line Commands cd | 轉到哪個資料夾 change directory ls | list all the files under this git clone *網址* pwd | 現在在哪層 git status 看狀態 常用 echo 印出來 \>導到某個檔案 git add 加檔名 代表把它加進去(紅色變綠色) git add -A 全部加進去 staging area:提交區 所有要提交的東西都會到這邊 git add 把變更寫到提交區 remote repo 雲端倉庫 github就是一個雲端倉庫 localrepo 自己的倉庫 working directory 工作資料夾 git commit 把提交區的東西寫到紀錄 staging area到localrepo git log 看所有的commit status 沒add前紅色 加了之後綠色 git push 傳上去到雲端倉庫 reset 綠色變紅色(所有) log 秀出所有commit git diff 上次commit的差異 reset --hard 完全抹消 checkout 把紅色消掉 不會消掉綠色 基本流程: clone add commit push status rm -rf test 把test這個東西完全消掉 垃圾桶也找不到 static website(純前端) dynamic website(有前端也有後端) git status git clone 網址 cd 檔名 ls touch 創一個空檔案 mv a b 把a改成b rm b 把b刪掉 http:localserver:8000 localhost 本地端測試改的網頁是不是對的 傳到上面 git push git commit -m "Initial commit" git push 然後開https://你的名字.github.io 這樣就大功告成囉! cmd terminal or Window+R terminal 指令 cd 資料夾名稱 架到server上面:python -m http.server 去localhost:8000 上面找 Control C 退出現在的指令 cd .. 退到上一層的資料夾 js: 處理button點下去的事情 document.getElementById("hi")
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up