git&github

git&github

更新於 發佈於 閱讀時間約 3 分鐘

操作筆記、安裝git、下載github專案

安裝git:

Git - Downloads (git-scm.com)

Windows

Windows

Git-2.32.0.2-64-bit.exe

Git-2.32.0.2-64-bit.exe

下載路徑

下載路徑

Git-2.32.0.2-64-bit.exe

Git-2.32.0.2-64-bit.exe

產生SSH 密鑰:

Generating a new SSH key

1. Open Git Bash.

git-bash.exe

git-bash.exe

2. Paste the text below, substituting in your GitHub email address.

$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Enter file in which to save the key (/c/Users/user/.ssh/id_rsa)

Enter file in which to save the key (/c/Users/user/.ssh/id_rsa)

/c/Users/user/.ssh/id_rsa

/c/Users/user/.ssh/id_rsa

.txt

.txt

下載github專案

GitHub

step1、辦帳號

step2、設定

Settings

Settings

SSH and GPG keys

SSH and GPG keys

公開金鑰貼上去

公開金鑰貼上去

命令提示字元

  • Check git是否安裝完成
git
git

git

git --version
git version 2.32.0.windows.2

git version 2.32.0.windows.2

設定名子

git config --global user.name "Your Name"

設定email

git config --global user.email "Your Email"
名子&&email

名子&&email

GIT使用

1. 創建資料夾

2. 開啟命令提示字元

cd 該資料夾路徑
命令提示字元

命令提示字元

3. Github上挑選喜歡的內容

  • Code > Clone > SSH >複製
https://github.com/ldkrsi/jieba-zh_TW

https://github.com/ldkrsi/jieba-zh_TW

4. 指令

git clone xxx
git clone

git clone


參考資料:

[1]. Git - Book (git-scm.com)

[2]. github基本教學 - 從無到有 - YouTube

[3]. Generating a new SSH key and adding it to the ssh-agent - GitHub Docs

[4]. Git使用前配置 - Git教程™ (yiibai.com)

avatar-img
匿名李的沙龍
6會員
46內容數
這是新手寫給新手的學習程式語言基礎教學筆記,內容會以C++為主
留言
avatar-img
留言分享你的想法!
匿名李的沙龍 的其他內容
Python安裝、外部程式包安裝(pip install xxx)、Hello World 【安裝Python】 Visual Studio Code-Download 進入vscode(延伸模組) 安裝中文介面(輸入ch搜尋) 安裝 搜尋命令提示字元 命令提示字元打python 創建檔案
Google、OneDrive、icloud 鑒於最近Google教育版雲端大開殺戒,來統計一下雲端費用。
Python安裝、外部程式包安裝(pip install xxx)、Hello World 【安裝Python】 Visual Studio Code-Download 進入vscode(延伸模組) 安裝中文介面(輸入ch搜尋) 安裝 搜尋命令提示字元 命令提示字元打python 創建檔案
Google、OneDrive、icloud 鑒於最近Google教育版雲端大開殺戒,來統計一下雲端費用。