创建一个仓库
获得地址
设置处添加公钥:
公钥的获得:
cd 到.ssh文件夹,如下操作,一路enter
查出rsa_pub后,粘贴至下方
终端输入 ssh git@github.com 来看是否连接成功
接着如下输入
1 luoguanghaodeMacBook-Pro:PAT luoguanghao$ echo "# PAT" >> README.md 2 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git init 3 Initialized empty Git repository in /Users/luoguanghao/Desktop/PAT/.git/ 4 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git add README.md 5 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git commit -m "first commit" 6 [master (root-commit) 34e777c] first commit 7 1 file changed, 3 insertions(+) 8 create mode 100644 README.md 9 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git remote add origin git@github.com:luoguanghao/PAT.git 10 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git push -u origin master 11 Counting objects: 3, done. 12 Writing objects: 100% (3/3), 211 bytes | 211.00 KiB/s, done. 13 Total 3 (delta 0), reused 0 (delta 0) 14 To github.com:luoguanghao/PAT.git 15 * [new branch] master -> master 16 Branch 'master' set up to track remote branch 'master' from 'origin'. 17 luoguanghaodeMacBook-Pro:PAT luoguanghao$ 18 luoguanghaodeMacBook-Pro:PAT luoguanghao$ 19 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git init 20 Reinitialized existing Git repository in /Users/luoguanghao/Desktop/PAT/.git/ 21 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git remote add origin git@github.com:luoguanghao/PAT.git 22 fatal: remote origin already exists. 23 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git add . 24 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git commit -m "Initial commit" 25 [master 866cee0] Initial commit 26 158 files changed, 7996 insertions(+) 27 create mode 100644 .DS_Store 28 create mode 100644 1.c 29 create mode 100644 4-1.c 30 create mode 100644 4-2.c 31 create mode 100644 4-3.c 32 create mode 100644 4-4.c 33 create mode 100644 6-1.c 34 create mode 100644 6-2 DFS_nonRecursive.c 35 create mode 100644 6-2.c 36 create mode 100644 6-3.c 37 create mode 100644 6-4.c 38 create mode 100644 6-4Prim.c 39 create mode 100644 6-5.c 40 create mode 100644 6-6Topological Order.c 41 create mode 100644 7-2.c 42 create mode 100644 7-4edit.c 43 create mode 100644 7-4simple.c 44 create mode 100644 Adjv 45 create mode 100644 Adjv].Earliest=G- 46 create mode 100644 Data[++Q- 47 create mode 100644 Data[Q- 48 create mode 100644 ID=id 49 create mode 100644 Next 50 create mode 100644 Quick_Sort.c 51 create mode 100644 Top 52 create mode 100644 Top] 53 create mode 100644 Untitled-1.cpp 54 create mode 100755 a.out 55 create mode 100644 adjlist[edge- 56 create mode 100644 adjlist[i].Earliest 57 create mode 100644 adjlist[i].Earliest=0 58 create mode 100644 adjlist[i].FirstEdge=NULL 59 create mode 100644 adjlist[i].Indegree=0 60 create mode 100644 adjlist[v1].FirstEdge 61 create mode 100644 adjlist[v].Earliest+edge- 62 create mode 100644 chongxie5-1.c 63 create mode 100644 e6-7.c 64 create mode 100644 front++]=frontitem 65 create mode 100644 front=-1 66 create mode 100644 front=0 67 create mode 100644 front=Q- 68 create mode 100644 front] 69 create mode 100644 next=HashTable[idx] 70 create mode 100644 patAdv/.DS_Store 71 create mode 100644 patAdv/.vscode/settings.json 72 create mode 100644 "patAdv/C++345273272346240221 345271266344270224346225260345261202346225260.cpp" 73 create mode 100644 "patAdv/PAT A1067 350264252345277203 350256260345275225345275223345211215344275215347275256.cpp" 74 create mode 100755 patAdv/a.out 75 create mode 100755 "patAdv/huffman 347273223346236204344275223 346214207351222210 344274230345205210351230237345210227 351207215350275275 344274240345235200351200222345275222" 76 create mode 100644 "patAdv/huffman 347273223346236204344275223 346214207351222210 344274230345205210351230237345210227 351207215350275275 344274240345235200351200222345275222.cpp" 77 create mode 100644 "patAdv/pat 1038 345207240344270252345255227347254246344270262347273204344270252346234200345260217346225260.cpp" 78 create mode 100644 patAdv/pat1003.c 79 create mode 100644 patAdv/pat1003bellman_ford.cpp 80 create mode 100644 patAdv/pat1003spfa.cpp 81 create mode 100755 patAdv/pat1018 82 create mode 100644 patAdv/pat1018.cpp 83 create mode 100644 patAdv/pat1020.cpp 84 create mode 100644 patAdv/pat1021 vector.cpp 85 create mode 100644 patAdv/pat1021Link.cpp 86 create mode 100644 patAdv/pat1030.cpp 87 create mode 100644 patAdv/pat1034 Map unfinish.cpp 88 create mode 100644 "patAdv/pat1045 346234200351225277344270215344270213351231215345255220345272217345210227 346212275350261241.cpp" 89 create mode 100755 patAdv/pat1072unfinish 90 create mode 100644 patAdv/pat1072unfinish.cpp 91 create mode 100644 "patAdv/pat1115 351223276350241250346240221.cpp" 92 create mode 100755 "patAdv/pat1119 pre post 350277230345216237346240221" 93 create mode 100644 "patAdv/pat1119 pre post 350277230345216237346240221.cpp" 94 create mode 100755 patAdv/patA1055 95 create mode 100644 "patAdv/patA1055 350210215345216273346225260346215256.cpp" 96 create mode 100644 "patAdv/patA1091 344270211347273264347232204DFS BFS.cpp" 97 create mode 100644 patAdv/patA80.cpp 98 create mode 100644 "patAdv/set347232204347273223346236204344275223346223215344275234.cpp" 99 create mode 100755 "patAdv/345271263350241241344272214345217211346240221" 100 create mode 100644 "patAdv/345271263350241241344272214345217211346240221.cpp" 101 create mode 100644 patBasic/.DS_Store 102 create mode 100644 patBasic/.vscode/launch.json 103 create mode 100644 patBasic/1.c 104 create mode 100644 patBasic/1048.cpp 105 create mode 100644 patBasic/2point2.c 106 create mode 100644 patBasic/PAT10.py 107 create mode 100644 patBasic/PAT12.py 108 create mode 100644 patBasic/PAT8.py 109 create mode 100644 patBasic/PAT9.py 110 create mode 100755 patBasic/a.out 111 create mode 100644 patBasic/pat1062unfinish.cpp 112 create mode 100644 patBasic/pat1068.cpp 113 create mode 100644 patBasic/pat11.py 114 create mode 100644 patBasic/pat13.py 115 create mode 100644 patBasic/pat16.py 116 create mode 100644 patBasic/pat17.py 117 create mode 100644 patBasic/pat19.py 118 create mode 100644 patBasic/pat20.py 119 create mode 100644 patBasic/pat21.py 120 create mode 100644 patBasic/pat22.py 121 create mode 100644 patBasic/pat26.c 122 create mode 100644 patBasic/pat29.cpp 123 create mode 100755 patBasic/pat3 124 create mode 100644 patBasic/pat3.c 125 create mode 100644 patBasic/pat30.cpp 126 create mode 100644 patBasic/pat32.py 127 create mode 100644 patBasic/pat34.cpp 128 create mode 100644 patBasic/pat35MergeOrInsert.cpp 129 create mode 100644 patBasic/pat4.c 130 create mode 100644 patBasic/pat5.c 131 create mode 100644 patBasic/pat6.py 132 create mode 100644 patBasic/pat7.py 133 create mode 100644 patBasic/patA1003.c 134 create mode 100644 "patBasic/pta346216222345220215.c" 135 create mode 100644 patBasic/sandbox.py 136 create mode 100644 patBasic/sandbox2.py 137 create mode 100755 "patBasic/346225260345255227351273221346264236" 138 create mode 100644 "patBasic/346225260345255227351273221346264236.cpp" 139 create mode 100644 "patBasic/346225260345255227351273221346264236.dSYM/Contents/Info.plist" 140 create mode 100644 "patBasic/346225260345255227351273221346264236.dSYM/Contents/Resources/DWARF/346225260345255227351273221346264236" 141 create mode 100644 "patBasic/357274210346234252345256214346210220357274211346213215345220210347205247.cpp" 142 create mode 100755 poj/a.out 143 create mode 100644 poj/poj.c 144 create mode 100644 poj/poj1062.c 145 create mode 100644 pta11.c 146 create mode 100644 pta12.c 147 create mode 100644 pta13.c 148 create mode 100644 pta14.c 149 create mode 100644 pta15.c 150 create mode 100644 pta16.c 151 create mode 100644 pta19.c 152 create mode 100644 pta2.c 153 create mode 100644 pta22.c 154 create mode 100644 pta23.c 155 create mode 100644 pta25.c 156 create mode 100644 pta26.c 157 create mode 100644 pta27.c 158 create mode 100644 pta28.c 159 create mode 100644 pta28.c.c 160 create mode 100644 pta29.c 161 create mode 100644 pta30.c 162 create mode 100644 pta31.c 163 create mode 100644 pta32.c 164 create mode 100644 pta33.c 165 create mode 100644 pta7.c 166 create mode 100644 rear=-1 167 create mode 100644 rear=Q- 168 create mode 100644 rear]=item 169 create mode 100644 sandbox.c 170 create mode 100644 sandbox2.c 171 create mode 100644 sandbox3.c 172 create mode 100644 sandbox4.c 173 create mode 100644 standard code.c 174 create mode 100644 weight 175 create mode 100644 "345223210345244253346233274 346240267346235277.c" 176 create mode 100644 "345223210345244253346233274code.cpp" 177 create mode 100644 "347256227346263225347254224350256260/4.4350264252345277203 345214272351227264351200211347202271351227256351242230.cpp" 178 create mode 100644 "347256227346263225347254224350256260/4.5 344272214345210206 345277253351200237345271202.cpp" 179 create mode 100644 "347256227346263225347254224350256260/4.5 344272214345210206 346261202345271263346226271346240271.cpp" 180 create mode 100644 "347256227346263225347254224350256260/4.5344272214345210206 350243205346260264351227256351242230.cpp" 181 create mode 100644 "347256227346263225347254224350256260/4.6351235236351200222345275222merge346216222345272217.cpp" 182 create mode 100644 "347256227346263225347254224350256260/DP 346225260345241224 351200222345275222.cpp" 183 create mode 100755 "347256227346263225347254224350256260/345277253351200237345271202345237272346234254" 184 create mode 100644 "347256227346263225347254224350256260/345277253351200237345271202345237272346234254.cpp" 185 luoguanghaodeMacBook-Pro:PAT luoguanghao$ git push -u origin master 186 Counting objects: 143, done. 187 Delta compression using up to 4 threads. 188 Compressing objects: 100% (137/137), done. 189 Writing objects: 100% (143/143), 148.39 KiB | 509.00 KiB/s, done. 190 Total 143 (delta 10), reused 0 (delta 0) 191 remote: Resolving deltas: 100% (10/10), done. 192 To github.com:luoguanghao/PAT.git 193 34e777c..866cee0 master -> master 194 Branch 'master' set up to track remote branch 'master' from 'origin'. 195 luoguanghaodeMacBook-Pro:PAT luoguanghao$
十分愚蠢地弄了一个下午