1. 程式人生 > 其它 >【機器學習基礎】無監督學習(3)——AutoEncoder

【機器學習基礎】無監督學習(3)——AutoEncoder

一、建立倉庫
cmd視窗開啟/cd 進入你的工作目錄

1、建立命令
git init
2、配置使用者名稱和郵箱:
git config --global user.name '你自己的github使用者名稱'
git config --global user.email '你自己的github的註冊郵箱'
3、建立鑰匙
ssh-keygen -t rsa -C "郵箱"
4、驗證鑰匙
ssh -T [email protected]
5、關聯遠端倉庫
git remote add origin 遠端倉庫地址
6、刪除關聯
git remote rm origin
7、初次拉取遠端到本地
git pull origin master --allow-unrelated-histories
或者從遠端庫克隆到本地

git clone 遠端地址
二、提交與拉取命令
1、新增檔案
git add '檔名'
或者 . 代表當前目錄檔案都新增

git add .
2、提交檔案
git commit -m '備註'
3、本地推到遠端
git push origin master
4、忽略提交的檔名寫入此檔案中
建立檔案

touch .gitignore
5、拉取遠端到本地
git pull origin master
三、檢視相關命令
1、檢視倉庫狀態
git status
2、檢視提交日誌(比較全面的資訊)
git log
3、檢視版本號與備註
git log --pretty=oneline
4、檢視操作記錄
git reflog
5、檢視檔案的修改內容
git diff
四、返回某個版本(需要提交到倉庫的檔案)
1、回到上一個版本
git reset --hard HEAD^
2、回到前100個版本
git reset --hard HEAD~100
3、回到具體版本號
git reset --hard 具體版本號
4、回到最後一次git commit 或者git add狀態
git checkout --檔名
五、分支相關命令
1、檢視分支
git branch
2、建立分支
git branch 分支名
3、切換分支
git checkout 分支名
4、建立切換同時進行
git checkout -b 分支名
5、刪除分支
git branch -D 分支名
6、刪除遠端分支
git push origin --delete 分支名
7、把a合併到b分支,先切換到b分支
git merge a分支名
8、檢視分支合併圖
git log --graph
六、標籤管理
1、打標籤
git tag 標籤名
2、檢視所有標籤
git tag
3、切換到指定的標籤名
git checkout 標籤名
4、推送標籤到遠端
git push origin 標籤名
5、拉取遠端到本地 分支名稱要為新的
git checkout -b [分支名稱] [tagit g標籤名稱]
6、刪除本地標籤
git tag -d 標籤名
7、刪除遠端標籤
git push origin :refs/tags/標籤名