Git smazat vzdálenou větev

Příklady kódu

55
0

smazat větev ze vzdáleného

// 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
20
0

git odebrat dálkový ovladač

$ 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)
19
0

git jak odstranit větev origin

$ git push origin --delete feature/login
3
0

smazat větev git

// delete branch locally
git branch -D localBranchName

// delete branch remotely
git push 
2
0

git smazat vzdálenou větev

$ git push -d <remote_name> <branch_name>
$ git branch -d <branch_name>
1
0

git smazat vzdálenou větev

#delete remote branch
git push -d <remote_name> <branch_name>
#example: git push -d origin new_feature

#delete local branch
git branch -d <branch_name>
#example: git branch -d new_feature

V jiných jazycích

Tato stránka je v jiných jazycích

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................