Try   HackMD

任務19 為自己發一個PR

  1. 到mentor-program-2nd 把網址clone下來

    Image Not Showing Possible Reasons
    • 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 →

  2. 開啟 使用git clone 網址

git clone git@github.com:CodeShibaGo/mentor-program-2nd.git
  1. 創建一個專案資料夾
mentor-program-2nd
  1. 進去那個創的專案資料夾
cd mentor-program-2nd
  1. 在iterm 創建一個branch
git branch Chrislinlin_mission_19
  1. 切換到這個branch
git checkout Chrislinlin_mission_19
  1. 開啟vscode
code .
  1. 在資料夾創自己的名字以及創建一個index.html

    Image Not Showing Possible Reasons
    • 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 →

  2. 把創建的index.html push上去

  3. 回到mentor-program-2nd,點選pull&request

    Image Not Showing Possible Reasons
    • 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 →

  4. New pull request

    Image Not Showing Possible Reasons
    • 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 →

  5. 點進去 create pull request,可以選自己的branch,就可以create

    Image Not Showing Possible Reasons
    • 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 →

new way

part 1

  1. 在my-projects裡的 xx_mission這個branch已經git push完畢

  2. 切換到gh-pages,應該裡面啥都沒有,
    merge branch剛剛已push好的mission

    Image Not Showing Possible Reasons
    • 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 →

  3. gh-pages merge xx_mission (branch)

  4. if 在my-projects裡專案已完成,xx_mission branch

  • 在my-projects發pr
  • gh-pages已push有靜態網頁
  • hackmd筆記已寫好
  1. iterm 進入 mentor-program 資料夾/ chrislinlin 裡(main branch)
  2. 用vscode 打開來
  3. 在vscode 創建mission_xx 資料夾,裡面創造mission_xx.md
    mission_xx.md 內容
    Image Not Showing Possible Reasons
    • 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 →

    做完到步驟四都是mainbranch
  4. 在main branch,輸入下列指令,創造mission_xx branch
git checkout -b mission_xx
  1. git add / commit / push
  2. 回到mentor-program_2頁面,發個pr
    Image Not Showing Possible Reasons
    • 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 →
tags: git