GitHub的使用

申請GitHub帳戶

https://github.com/html

建立本地Git環境

Windowspython

windows系統須要本身下載一個安裝包git

https://git-scm.com/downloadsgithub

macwindows

mac本機自帶git環境ssh

本地git連接github

git init  # 初始化本地git倉庫

執行以上命令會在本地生成一個.git文件,只有這個.git文件存在才能進行git相關操做。(.git是一個隱藏文件)code

ssh-keygen -t rsa -C '帳號'

image-20190724161355593

ssh -T git@github.com  # 驗證認證

設置用戶名/郵箱

git config --global user.name "your name"
git config --global user.email "your_email@youremail.com"

提交項目

git add .  # 添加所有內容
git add 文件路徑。# 添加具體文件

git commit -m '描述信息'
git remote add origin '項目路徑'  # 
git push -u origin master  # 提交到遠程master分支

pycharm鏈接github

http://www.javashuo.com/article/p-hgjtfyny-dg.htmlhtm

相關文章
相關標籤/搜索