Git bash常用命令

2022-02-03 19:03:15 字數 364 閱讀 2485

最近專案中使用到了git,所以記錄一下git中常用的命令。

git使用的客戶端有git bash:

還有烏龜tortoisegit:

git status檢視本地修改與伺服器的差異。

git add .將這些差異檔案新增,這樣就可以提交了。

git commit –m 「這裡是注釋」提交更改到伺服器。

git checkout master更改到master庫。

git pull將伺服器最新的更改獲取到本地。

git merge local master將本地的local合併到遠端的master上。

git push origin master正式提交到遠端的master伺服器上。

Git bash常用命令

最近專案中使用到了git,所以記錄一下git中常用的命令。git使用的客戶端有git bash 還有烏龜tortoisegit git status檢視本地修改與伺服器的差異。git add 將這些差異檔案新增,這樣就可以提交了。git commit m 這裡是注釋 提交更改到伺服器。git che...

Git bash常用命令

checkout方式 xiaofeng 126 data projectname e htdocs projectname 本地增加 git add 本地提交方式 git commit m 這裡是注釋而且一定要寫 上傳本地到遠端倉庫 git push origin master 合併遠端倉庫到本地 ...

Git bash 常用命令

master 是用來做主方向開發的一直向前進行,乙個新模組的開發,這個時候就放在master,當模組開發完成後,需要修改,就用branch。branch 是用來做並行開發的,這裡的並行是指和master進行比較。tag 是用來做乙個milestone 里程碑 的,不管是不是發布版本,但都是乙個可用的...