-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha.txt
More file actions
98 lines (57 loc) · 1.37 KB
/
a.txt
File metadata and controls
98 lines (57 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
git init
git config --global user
連結Git
git status
觀察
git add a.txt
更新上去
git commit -m "這是歷史紀錄,可以加註解"
git log
歷史紀錄
Author: Ray <top820510@gmail.com>
Date: Fri Dec 11 09:48:10 2020 +0800
這是歷史紀錄,可以加註解
安裝 git graph 套件
是好看的 git log
git diff
在commit前檢查更動
git reset --hard HEAD~1
回到上一版本
git branch canvas
開新分支 叫canvas
名字可以自訂
可以在樹上看到兩個標籤
git checkout canvas
切換到這個版本
然後再commit
git commit -am "a 是 add all , m 是 註解"
git branch
看看自己在哪裡
git merge canvas
合併分支 canvas是分支名
git branch -d canvas
把合併過後的分支刪掉
git log --oneline
一行的歷史紀錄
git tag v1.0
增加標籤
git remote add origin https://github.com/Rayyyyyyyyyyyyyyyyyyyy/test.git
選擇github資料夾
git commit -a
先commit
git push origin master
推送上去
git clone github網址
把目標對象的code 拉到本機端
在github上 點選fork
把目標對象的code 拉到自己的github上
git pull origin master
把github的code 拉下並合併本機端
頻繁的commit -m 將message上到git 讓合作夥伴能看見
C:\Users\student\.gitconfig 變更設定
[alias]
ci = commit
st = status
br = branch
co = checkout
這是自訂的快捷語法