ลบแบรนซ์จากระยะไกล
// delete branch locally
git branch -d localBranchName
//delete local branch that is unmerged
git branch -D localBranchName
// delete branch remotely
git push origin --delete remoteBranchName
git ลบระยะไกล
$ git remote -v
# View current remotes
> origin https://github.com/OWNER/REPOSITORY.git (fetch)
> origin https://github.com/OWNER/REPOSITORY.git (push)
> destination https://github.com/FORKER/REPOSITORY.git (fetch)
> destination https://github.com/FORKER/REPOSITORY.git (push)
$ git remote rm destination
# Remove remote
$ git remote -v
# Verify it's gone
> origin https://github.com/OWNER/REPOSITORY.git (fetch)
> origin https://github.com/OWNER/REPOSITORY.git (push)
git ยังไงจะลบแหล่งกำเนิดแบรนซ์
$ git push origin --delete feature/login
ลบระยะไกล git แบรนซ์
git push --delete remoteName branchName
git ลบระยะไกลหน่วยอยู่ในท้องถิ่น git
# Fetch changes from all remotes and locally delete
# remote deleted branches/tags etc
# --prune will do the job :-;
git fetch --all --prune
ลบ git สาขาทางไกล
git push -d origin <branch_name>