1. 程式人生 > >Git 常用命令(持續補充中...)

Git 常用命令(持續補充中...)

Git 常用命令

1. 刪除遠端分支

git push <remoteName> --delete <branchName>

例如:

git push origin --delete branchAForTest

這個命令還是挺好理解的,push 表示對遠端的操作,–delete 表示刪除

2. 建立一個本地分支,並將其與遠端分支連線

git checkout -b <branchName> <remoteName>/<branchName>

例如:

git checkout -b client1121 origin/client1121