github上傳專案

2021-09-27 03:15:59 字數 861 閱讀 6763

echo "# office_automation_script" >> readme.md

git init # 在專案根目錄執行init

git add readme.md

git commit -m "first commit"

git remote add origin

git push -u origin master

ssh -t [email protected]
若git顯示拒絕,繼續如下操作

git config  --global user.name "yahuuu"
git config  --global user.email "[email protected]"
ls -al ~/.ssh/
ssh-keygen -c '***@joyulf.com' -t rsa # 一路回車確認
開啟你剛剛生成的id_rsa.pub,將裡面的內容複製,

vim /home/alex/.ssh/id_rsa.pub
進入你的github賬號,在settings下,ssh and gpg keys下, new ssh key

最後輸入

ssh -t [email protected]
顯示

hi yahuuu! you』ve successfully authenticated, but github does not provide shell access.

搞定.

GitHub 上傳專案

相關操作指令 1 在github先新建專案acc,然後把路徑名複製起來,路徑名 project 2 在想要上傳的資料夾下右擊 得先安裝上git 選中git bash here 3 git clone project 4 cd acc 5 git add 把需要傳上去的檔案放在acc資料夾下 6 gi...

github上傳專案

預設你下了 git 的 在 github 新建倉庫的時候不要選擇 add a readme file 如果選了,一路預設下去,分支名叫 main 這.不選這個 add a readme file,然後預設下去 進入到自己的專案資料夾下,右鍵空白處開啟 git bash,然後按這個教程來就行了 git...

github上傳專案

git的安裝就不說了。第一步 我們需要先建立乙個本地的版本庫 其實也就是乙個資料夾 你可以直接右擊新建資料夾,也可以右擊開啟git bash命令列視窗通過命令來建立。現在我通過命令列在桌面新建乙個test資料夾 你也可以在其他任何地方建立這個資料夾 並且進入這個資料夾 第二步 通過命令git ini...