LoKwongho

mm

github上传文件夹

 创建一个仓库

获得地址 

 

设置处添加公钥: 

公钥的获得:

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++\345\273\272\346\240\221 \345\271\266\344\270\224\346\225\260\345\261\202\346\225\260.cpp"
 73  create mode 100644 "patAdv/PAT A1067 \350\264\252\345\277\203 \350\256\260\345\275\225\345\275\223\345\211\215\344\275\215\347\275\256.cpp"
 74  create mode 100755 patAdv/a.out
 75  create mode 100755 "patAdv/huffman \347\273\223\346\236\204\344\275\223 \346\214\207\351\222\210 \344\274\230\345\205\210\351\230\237\345\210\227 \351\207\215\350\275\275 \344\274\240\345\235\200\351\200\222\345\275\222"
 76  create mode 100644 "patAdv/huffman \347\273\223\346\236\204\344\275\223 \346\214\207\351\222\210 \344\274\230\345\205\210\351\230\237\345\210\227 \351\207\215\350\275\275 \344\274\240\345\235\200\351\200\222\345\275\222.cpp"
 77  create mode 100644 "patAdv/pat 1038 \345\207\240\344\270\252\345\255\227\347\254\246\344\270\262\347\273\204\344\270\252\346\234\200\345\260\217\346\225\260.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 \346\234\200\351\225\277\344\270\215\344\270\213\351\231\215\345\255\220\345\272\217\345\210\227 \346\212\275\350\261\241.cpp"
 89  create mode 100755 patAdv/pat1072unfinish
 90  create mode 100644 patAdv/pat1072unfinish.cpp
 91  create mode 100644 "patAdv/pat1115 \351\223\276\350\241\250\346\240\221.cpp"
 92  create mode 100755 "patAdv/pat1119 pre post \350\277\230\345\216\237\346\240\221"
 93  create mode 100644 "patAdv/pat1119 pre post \350\277\230\345\216\237\346\240\221.cpp"
 94  create mode 100755 patAdv/patA1055
 95  create mode 100644 "patAdv/patA1055 \350\210\215\345\216\273\346\225\260\346\215\256.cpp"
 96  create mode 100644 "patAdv/patA1091 \344\270\211\347\273\264\347\232\204DFS BFS.cpp"
 97  create mode 100644 patAdv/patA80.cpp
 98  create mode 100644 "patAdv/set\347\232\204\347\273\223\346\236\204\344\275\223\346\223\215\344\275\234.cpp"
 99  create mode 100755 "patAdv/\345\271\263\350\241\241\344\272\214\345\217\211\346\240\221"
100  create mode 100644 "patAdv/\345\271\263\350\241\241\344\272\214\345\217\211\346\240\221.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/pta\346\216\222\345\220\215.c"
135  create mode 100644 patBasic/sandbox.py
136  create mode 100644 patBasic/sandbox2.py
137  create mode 100755 "patBasic/\346\225\260\345\255\227\351\273\221\346\264\236"
138  create mode 100644 "patBasic/\346\225\260\345\255\227\351\273\221\346\264\236.cpp"
139  create mode 100644 "patBasic/\346\225\260\345\255\227\351\273\221\346\264\236.dSYM/Contents/Info.plist"
140  create mode 100644 "patBasic/\346\225\260\345\255\227\351\273\221\346\264\236.dSYM/Contents/Resources/DWARF/\346\225\260\345\255\227\351\273\221\346\264\236"
141  create mode 100644 "patBasic/\357\274\210\346\234\252\345\256\214\346\210\220\357\274\211\346\213\215\345\220\210\347\205\247.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 "\345\223\210\345\244\253\346\233\274 \346\240\267\346\235\277.c"
176  create mode 100644 "\345\223\210\345\244\253\346\233\274code.cpp"
177  create mode 100644 "\347\256\227\346\263\225\347\254\224\350\256\260/4.4\350\264\252\345\277\203 \345\214\272\351\227\264\351\200\211\347\202\271\351\227\256\351\242\230.cpp"
178  create mode 100644 "\347\256\227\346\263\225\347\254\224\350\256\260/4.5 \344\272\214\345\210\206 \345\277\253\351\200\237\345\271\202.cpp"
179  create mode 100644 "\347\256\227\346\263\225\347\254\224\350\256\260/4.5 \344\272\214\345\210\206 \346\261\202\345\271\263\346\226\271\346\240\271.cpp"
180  create mode 100644 "\347\256\227\346\263\225\347\254\224\350\256\260/4.5\344\272\214\345\210\206 \350\243\205\346\260\264\351\227\256\351\242\230.cpp"
181  create mode 100644 "\347\256\227\346\263\225\347\254\224\350\256\260/4.6\351\235\236\351\200\222\345\275\222merge\346\216\222\345\272\217.cpp"
182  create mode 100644 "\347\256\227\346\263\225\347\254\224\350\256\260/DP \346\225\260\345\241\224 \351\200\222\345\275\222.cpp"
183  create mode 100755 "\347\256\227\346\263\225\347\254\224\350\256\260/\345\277\253\351\200\237\345\271\202\345\237\272\346\234\254"
184  create mode 100644 "\347\256\227\346\263\225\347\254\224\350\256\260/\345\277\253\351\200\237\345\271\202\345\237\272\346\234\254.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$ 

 

 

 

十分愚蠢地弄了一个下午

 

posted on 2019-06-02 20:05  iojafekniewg  阅读(2558)  评论(0编辑  收藏  举报

导航

My Email guangho2743##foxmail.com : )