From the course: Git: Branches, Merges, and Remotes
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Delete a remote branch
From the course: Git: Branches, Merges, and Remotes
Delete a remote branch
- Now that we know how to create and work with remote branches, I also want us to learn how to delete them. When I talk about deleting a remote branch, I'm talking about removing the branch from the remote repository, not the local repository. The local repository can still keep the branch, I'm telling git hub that it ought to remove this branch. You can remove remote branches any time but it's most useful whenever a feature branch has been completed and merged. So, let's imagine that you have a master branch, you branch off of that to make a feature branch, you work on that feature for a couple of days, when the feature is finally complete, you merge it back into master. Now I don't need that feature branch anymore. You may want to leave it around for a few days, but at some point those feature branches start to accumulate and we need to get rid of them. So we want to tell git hub that it can get rid of them and maybe we want to remove them from our local repository as well. Right…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Push changes to a remote repository5m 21s
-
(Locked)
Fetch changes from a remote repository5m 1s
-
(Locked)
Merge in fetched changes4m 34s
-
(Locked)
Check out remote branches3m 9s
-
(Locked)
Push to an updated remote branch1m 45s
-
(Locked)
Delete a remote branch4m 26s
-
(Locked)
Enable collaboration3m 53s
-
(Locked)
Collaboration workflow7m 6s
-
(Locked)
-