切換到master分支
git checkout master
查看已有的本地及遠程分支
git branch -a
刪除遠程分支
git push origin --delete shenxsh(要刪除的分支)
刪除本地分支
git branch -D shenxsh(要刪除的分支)
git checkout master
git branch -a
git push origin --delete shenxsh(要刪除的分支)
git branch -D shenxsh(要刪除的分支)
一: 安裝openssl和pcre yum -y install pcre-devel openssl openssl-devel 安裝git yum install git -y
取消跟蹤文件&&重新跟蹤 如果修改了.gitignore文件,那麼需要進行如下操作: git rm -rf --cached . git add ./*
創建分支並且拉去遠程同步分支的過程中出現該異常: fatal: 'idea-line-02' is not a commit and a branch 'idea-line