git 切换分支 remote set-url, git删除分支

  # 查看git源

git  remote -v
git remote set-url origin http://[email protected]:8090/r/ENSO/webapp.git

# 切换git源

git remote set-url origin http://[email protected]/r/OnlineEdu/bgms-web.git
# 查看git分支
git branch

# 切换到master分支

git checkout master
# 创建dev分支并切换到这个分支
git checkout -b dev

 

------------------------------------------------------

13352@zhanghum MINGW64 /g/eclipse-workspace/platform (20180706_dev_question_course)
$ git branch
* 20180706_dev_question_course
enso-branch
master

13352@zhanghum MINGW64 /g/eclipse-workspace/platform (20180706_dev_question_course)
$ git checkout 20180723_dev_xdr_v2
Switched to a new branch '20180723_dev_xdr_v2'
M enso/src/main/resources/jdbc.properties
Bra

你可能感兴趣的:(git,git)