git使用命令總結

2021-09-28 13:45:40 字數 920 閱讀 9978

git clone 『

git commit

## 有新增檔案使用:

> git add .

> git commit -m 'message' -a

##指定本地master到遠端的master,再進行pull和push

git branch --set-upstream-to=origin/master maste

git pull

git push

git config --global credential.helper store

.git資料夾下conf新增以下配置

廣告環節:

推薦使用 「三豐雲」「免費虛擬主機」「免費雲伺服器」

三豐雲

git使用命令總結

1.從遠端拉到本地建立的目錄下,使用git clone 位址 2.使用git status檢視git狀態 3.在首層目錄下使用git add 在或者使用全路徑下 git add 檔名 4.git commit am 備註資訊 如 git commit am 測試資料庫伺服器密碼更改 5.git pu...

Git使用命令

初始化本地git倉庫 git init宣告遠端倉庫路徑 git remote add origin 你的遠端專案位址 檢視倉庫位址 git remote v如果結果是正確的則跳過下面的 git remote rm origin 刪除當前連線 git remote add origin xx.git ...

git使用命令

建立分支 git branch mybranch 切換分支 git checkout mybranch 建立並切換分支 git checkout b mybranch 更新master主線上的東西到該分支上 git rebase master 切換到master分支 git checkout mas...