DSMI lab
,github
參考影片
從0開始
首先
建立與github連線
git config –global user.name '帳號名'
git config –global user.email '信箱'
git config -l #檢查配置
上傳設置
ese insert消失 esc !:wq離開
Read.me會優先讀取 就是下面的說明
在git commiter中 esc :x
上傳過程
當git remote add origin 網址已經設定好了
可以直接
git status
git add .
git status
(可用可不用)git commit
git push -u origin master
新增分支
git checkout -b "分支名"
狀態內容
git push origin 分支名
github 可以指定分支顯示
你也可以用
git push origin 分支名:master 來把原先在分支中的檔案傳到"master"分支下
別人如何獲取別人的檔案?
搜索項目 點選 Fork:把別人的檔案copy到自己的github
在自己電腦端:git clone 網址 下載到當前資料夾
cd到該資料夾
修改: Edit(小筆)
提交: Commit
自己的更改 到別人的檔案: Pull requests-> New pull requests
自動將自己修改的 更動 ->Creat pull request 發送修改內容傳送到別人檔案下
別人帳號會看到 Pull requests 可看到更改內容
merge 則合併兩檔案
請求修改別人檔案
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing