執(zhí)行 git push origin master 操作會(huì)報(bào)該錯(cuò)誤:
Permission denied (publickey).
fatal: Could not read from remote repository.
問(wèn)題:我已經(jīng)在github上傳了SSH公鑰往弓,但是卻沒(méi)有在本地添加SSH
解決方法:在本地添加我生成的SSH文件
比如我現(xiàn)在已經(jīng)在當(dāng)前文件夾找到了SSH文件
執(zhí)行:ssh-add 13705038428SSH
就可以了
=====================================
問(wèn)題:
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
當(dāng)前路徑并非git路徑真尷尬止喷,網(wǎng)上一片解說(shuō)院促,賊菜
=====================================
問(wèn)題 : Permission denied (publickey).
? ? ? ? ? ? fatal: Could not read from remote repository.
git目錄下的SSH和公鑰不能刪,刪了就會(huì)出現(xiàn)這個(gè)錯(cuò)誤
解決:重新生成SSH程奠,上傳到github,本地再次添加SSH就好了
=pppppppppp
項(xiàng)目整個(gè)文件夾直接拖進(jìn)git項(xiàng)目里,git不會(huì)提示新文件狀態(tài)喷市,需要先創(chuàng)建一個(gè)文件夾然后把項(xiàng)目文件夾里的全拷貝進(jìn)去,就有提示了
=pppppppppp
關(guān)于忽略文件
pod只留下podfile威恼,其他忽略品姓,其他成員下載項(xiàng)目后,pod update就行了
*~
.DS_Store
*.xcuserstate
*.xcworkspace
xcuserdata
*.lock
Pods
曹老師8428