Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

week1 #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

week1 #43

wants to merge 1 commit into from

Conversation

oceankiro
Copy link

thx benben

Copy link

@benben6515 benben6515 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

整體沒有太大的問題~

  • hw5 漏了一小題
  • 一些文件小排版問題

Comment on lines +3 to +19
1.先在本機上面新建一個資料夾

2.打開 vscode,使用下方終端機,創建資料夾,再創建文字檔

3.連結 git ,使用「git init」就會初始化一個新的 git 資料庫

4.確認系統是否創建成功,由於 git 初始化後會自動創建「.git」的資料夾,但是隱藏的,所以要想看到需要「ls -Force」,至於 mac 可以使用「ls -a」看到隱藏資料夾

5.上傳至 staging area,使用 「git add "檔案名稱"」

6.將 staging area 暫存區,提交給 localrepo 本地儲存庫,使用 「git commit -m "註解(例如:第五次測試、新增功能 a 的變更)"」

7.將 localrepo 本地儲存庫,提交給 remote repository 遠端資料庫(例如 github、gitlab),使用 「git remote add origin "網址" 」

8.將資料推送至 github ,使用 「git push origin master」這將推送 master 分支的更改到 GitHub 上名為 "origin" 的遠端儲存庫。如果使用的是不同的分支名稱,請將 master 替換為實際分支名稱

9.接著登陸 github 確認是否成功

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

沒錯!流程寫得很細!

之後工作/作業的流程,會是 git add . 直接一次填加所有檔案居多,可以看一下 .gitignore 之類的,當作一個補充之類的,先看看就好

補充一下,前端或是 Node 之類的,可以參考:https://github.com/github/gitignore/blob/main/Node.gitignore

我自己當時還有再整理一個「懶人包」,之後交作業都直接 copy/paste 這樣,一樣給你參考~

Comment on lines +30 to +49
它的基礎對應指令有以下:
pwd 顯示現在所在的位置,如:/c/Users/hp
ls 顯示現在資料夾內所有的資料,可配合參數:「-a」可以顯示所有(隱藏)檔案
cd 切換至其他資料夾位置,透過 ls 可以知道資料夾內的所有資料,因此可以用來
切換到其他資料夾內,如:cd hello_git
man 使用說明書,只要在後面加上不懂的指令名稱,就會解釋。如:man ls,就會
顯示它的使用功能和所有配合參數。(但這個指令似乎要額外安裝才可以使用)
clear 清除 git bash 上面所有的剛剛執行過的過程,讓介面乾淨,僅此而已。
touch 建立檔案或更改檔案的時間。如:touch 001,如果今天這個檔案沒有存在過
就會被建立,如果有的話則是會更改它最後一次的修改時間,但仍然會在時間
歷程中
mkdir 建立資料夾,如:mkdir 001
mv 移動資料,或者更改名稱。如:mv 123 /c/users/hp,它的對應意思是:
「移動 檔案名稱 到這個絕對位置」or「改名 檔案名稱 變成這個名稱」
cp 複製檔案。如:cp 123 123(1),它的對應意思是:
「複製 這個檔案 複製後名稱」
rm 刪除檔案,可以刪除檔案或資料夾。如:rm 123,就會刪除該檔案;
如果是刪資料夾:rmdir git001,就會刪除該資料夾;
如果要刪除資料夾以及其資料夾內的東西:rm -r git001;
如果檔案有受保護,想要強制刪除:rm -f git001(不可以隨便使用真的會刪光)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這邊可以善用更多 markdown 的語法,之後寫文件、筆記都用得到,像是:

它的基礎對應指令有以下:
pwd 顯示現在所在的位置,如:/c/Users/hp
ls 顯示現在資料夾內所有的資料,可配合參數:「-a」可以顯示所有(隱藏)檔案
cd 切換至其他資料夾位置,透過 ls 可以知道資料夾內的所有資料,因此可以用來
切換到其他資料夾內,如:cd hello_git
man 使用說明書,只要在後面加上不懂的指令名稱,就會解釋。如:man ls,就會
顯示它的使用功能和所有配合參數。(但這個指令似乎要額外安裝才可以使用)

可以改為:

它的基礎對應指令有以下:

- `pwd` 顯示現在所在的位置,如:/c/Users/hp
- `ls` 顯示現在資料夾內所有的資料,可配合參數:「-a」可以顯示所有(隱藏)檔案
- `cd` 切換至其他資料夾位置,透過 ls 可以知道資料夾內的所有資料,因此可以用來
切換到其他資料夾內,如:`cd hello_git`
- `man` 使用說明書,只要在後面加上不懂的指令名稱,就會解釋。如:`man ls`,就會
顯示它的使用功能和所有配合參數。(但這個指令似乎要額外安裝才可以使用)

看起來會像:


它的基礎對應指令有以下:

  • pwd 顯示現在所在的位置,如:/c/Users/hp
  • ls 顯示現在資料夾內所有的資料,可配合參數:「-a」可以顯示所有(隱藏)檔案
  • cd 切換至其他資料夾位置,透過 ls 可以知道資料夾內的所有資料,因此可以用來
    切換到其他資料夾內,如:cd hello_git
  • man 使用說明書,只要在後面加上不懂的指令名稱,就會解釋。如:man ls,就會
    顯示它的使用功能和所有配合參數。(但這個指令似乎要額外安裝才可以使用)

是不是好讀很多呢?

其他 markdown 語法,可以參考:https://www.markdownguide.org/cheat-sheet/

Comment on lines +10 to +15
1.輸入「Javascript」:從搜尋框準備將資料輸入。
2.HTTP 請求:向 Google 發送這個內容的請求。
3.DNS 解析:將 Google 網址發送給 DNS 網站,轉換對應的 IP 位置,再返回用戶端。
(同時會緩存內容,以便提高效能不必再重新轉換) 4.建立連結:瀏覽器與 Google 建立一個安全連結。 5.處理搜尋:進行搜索。 6.生成演算:根據你的輸入進行計算,決定應該返回哪些搜尋結果。這包括考慮關鍵字的
相關性、網頁的權重等。 7.導入結果:將結果導入至你的頁面,可能有多個搜尋、網站,甚至相關廣告。 8.呈現:你的瀏覽器收到結果後,開始解析網站內的 HTML、JS、CSS 等,最終呈現出來
畫面。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

小提醒:這邊的排版跑掉了

內容沒什麼問題

## 請列舉出 3 個「課程沒有提到」的 command line 指令並且說明功用
Copy link

@benben6515 benben6515 Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這一題是不是漏掉了 XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants