git 教學 | linux git教學
git教學-HackMDgit教學===######tags:`github``winter_camp``tutorial`---[TOC]#簡介![](https://i.imgur.com/OLEtNj9.png)##Whygit?
git 教學 === ###### tags: `github` `winter_camp` `tutorial` --- [TOC] # 簡介 ![](https://i.imgur.com/OLEtNj9.png) ## Why git? <iframe src="https://i1.wp.com/www.slideshare.net/slideshow/embed_code/key/2gXpdq3uoGwdEW?hostedIn=&referer=" width="760px" height="570px" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:none;" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe> --- # git 架構 ![](https://i.imgur.com/bAusFBa.png) # Linux 基本操作 [Link](https://hackmd.io/@NCTU-auv/H1TLKa51P) # git 實行 https://gitforwindows.org/ ## 文字編輯器 - vim ``` $ sudo apt-get install vim ``` ## 設定 ssh-key 金鑰 [設定教學](https://blog.jaycetyle.com/2018/02/github-ssh/) ## Example file strcture ``` - /project - happy.cpp ``` happy.cpp ``` cpp= #include<iostream> int main(){ std::cout << "hello world"; } ``` ## git init ``` bash //為資料夾做git初始化 $ git init ``` ## git status ``` bash //顯示git 目...