技术

Git 基本用法

删除分支

git branch -d branch-name       // 删除本地分支
git push origin -d branch-name  // 删除远程分支

关联本地分支和远程分支

git remote add origin ssh://xxx

修改远程仓库地址

git remote set-url origin new.git.url

Leave a Reply

Your email address will not be published. Required fields are marked *