Αποτελέσματα Αναζήτησης
5 Ιαν 2010 · To delete a Git branch both locally and remotely, first delete the local branch using this command: git branch -d example (Here example is the branch name.) And after that, delete the remote branch using this command: git push origin :example
26 Αυγ 2021 · Learn how to delete local and remote branches in Git using git branch and git push commands. See examples, explanations, and tips for branching and merging in Git.
Learn how to use the git branch command to delete a local branch in Git, and how to force deletion or undo deletion with the -D or -D flags. Also, find out how to delete a remote branch with git push.
2 Ιαν 2020 · Here's the command to delete a branch remotely: git push <remote> --delete <branch>. For example: git push origin --delete fix/authentication. The branch is now deleted remotely. You can also use this shorter command to delete a branch remotely: git push <remote> :<branch>.
24 Σεπ 2021 · Learn how to delete branches in Git using git branch and git push commands, and how to enable automatic deletion of pull request branches on Github. Avoid data loss by deleting branches after merging them into master or other branches.
6 Φεβ 2024 · In this article, we’ve explored how to delete Git’s local and remote branches using commands. Let’s summarize them quickly: Delete a local branch: git branch -d/-D <branchName> (the -D option is for force deletion) Delete a remote branch: git push origin -d <branchName> or git push origin :<branchName>
2 Οκτ 2024 · To delete a local branch, use the git branch -d command followed by the name of the branch you want to delete. For example: git branch -d feature/new-login-system