The -D option is a shortcut for -delete -force, which deletes the branch irrespective of its merged status.As a user of TortoiseGit I’ve always been a bit confused when it comes to dealing with remote branches. NOTE: The -d option only deletes the branch if it has already been merged.To delete a local branch, run either of these commands:.git push origin -delete my-branch-name. To delete a remote branch, run this command:.Refer to Handling Merge Conflicts (the next exercise) to learn what to do. NOTE: When you merge, there may be a conflict.Now you can merge another branch into the current branch.NOTE: Replace master with another branch name as needed. If you're not already on the desired branch, run this command:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |