Git和GitHub的簡單同步

2021-10-04 18:10:58 字數 807 閱讀 2018

在github中新建倉庫

建立本地與遠端的連線

常用語句

將公鑰的內容貼上進去即可。

倉庫名稱(必填)

倉庫的描述(選填)

public/private(二者選一,普通的選中public)

建立readme檔案,用於詳細介紹倉庫,建議選擇

忽視檔案(git上傳時自動忽視的檔案型別 可不選)

新增license(可不選)

git clone remote-repository-url

git remote -v

git remote -h

git remote add [-t 

] [-m ] [-f] [--tags | --no-tags] [--mirror=]

git remote add local-name remote-repository-url

git push

git fetch

git push

git pull

Github和Git的簡單使用

一 github使用 具體參考tutorial 二 git使用 linux下 參考 1.設定姓名和郵件位址 git config global user.name your name git config global user.email your email whatever.com 只需替換引...

GitHub和git簡單使用

github是乙個基於git的 託管平台,付費使用者可以建私人倉庫,我們一般的免費使用者只能使用公共倉庫,也就是 要公開。github 由chris wanstrath,pj hyett 與tom preston werner三位開發者在2008年4月創辦。迄今擁有59名全職員工,主要提供基於git...

git系列(3) git和github同步

1.在github上註冊賬號 2.在git工作區生成ssh秘鑰 公鑰和私鑰 ssh keygen t rsa b 4096 c 郵箱 去將公鑰新增到github中 4.建立乙個github的倉庫 5.建立乙個遠端的站點,用來連線本地的倉庫和遠端的倉庫 git remote add github 遠端...