1. 程式人生 > >利用 git 上傳文件到 github

利用 git 上傳文件到 github

獲取 family log 名稱 add 配置詳情 常用命令 rip pan

git 常用命令匯總

git config --global user.name ""

git config -- global user.email ""

git config --list (查看配置詳情)

git status (查看當前倉庫狀態)

git add (將工作區中的文件添加到暫存區)

git commit -m"description" (將暫存區的文件提交到本地倉庫,-m 後添加的是對文件的註釋或解釋說明)

git push (上傳文件到 github)

git log oneline (查看本地倉庫的提交歷史)

git branch (查看分支)

git branch "分支名稱" (創建新分支)

git checkout -b "分支名稱" (新建分支並切換到新建的分支)

git checkout (切換分支)

git branch -d "分支名稱" (刪除分支)

git clone "倉庫地址" (獲取已有倉庫的副本)

利用 git 上傳文件到 github