Timeline for How do I delete a Git branch locally and remotely?
Current License: CC BY-SA 4.0
25 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 11 '20 at 11:59 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Used a comment character compatiple with Bash. Used more standard formatting (we have italics and bold on this platform).
|
Sep 6 '19 at 11:59 | history | edited | Alireza | CC BY-SA 4.0 |
added 4 characters in body
|
Sep 6 '19 at 10:31 | comment | added | jmiserez | The image is distracting and very large and adds nothing to the answer. I hope this does not become a trend on SO. | |
Jul 25 '19 at 14:17 | history | edited | Alireza | CC BY-SA 4.0 |
added 4 characters in body
|
May 8 '19 at 6:33 | comment | added | vibs2006 |
When branches get deleted on origin, your local repository won't take notice of that. You'll still have your locally cached versions of those branches (which is actually good) but git branch -a will still list them as remote branches. You can clean up that information locally like this: git remote prune origin Your local copies of deleted branches are not removed by this. The same effect is achieved by using git fetch --prune
|
|
Mar 22 '19 at 7:08 | history | edited | Alireza | CC BY-SA 4.0 |
edited body
|
Dec 13 '18 at 18:17 | history | edited | Alireza | CC BY-SA 4.0 |
added 4 characters in body
|
Jun 18 '18 at 10:02 | history | edited | Nawaz | CC BY-SA 4.0 |
added 162 characters in body
|
Jun 5 '18 at 23:54 | history | edited | Alireza | CC BY-SA 4.0 |
added 4 characters in body
|
May 28 '18 at 8:43 | comment | added | BaDr Amer | note that if you are setting on the branch you want to delete, you need to checkout a branch other than the one you need to delete (eg: master) before deleting the local branch. | |
Jan 15 '18 at 12:17 | history | edited | Alireza | CC BY-SA 3.0 |
edited body
|
Dec 26 '17 at 19:05 | history | edited | Alireza | CC BY-SA 3.0 |
deleted 4 characters in body
|
Dec 11 '17 at 10:34 | history | edited | Alireza | CC BY-SA 3.0 |
added 17 characters in body
|
Nov 30 '17 at 23:50 | history | edited | Alireza | CC BY-SA 3.0 |
added 5 characters in body
|
Oct 25 '17 at 6:29 | history | edited | Alireza | CC BY-SA 3.0 |
added 7 characters in body
|
Sep 28 '17 at 10:55 | history | edited | Alireza | CC BY-SA 3.0 |
deleted 3 characters in body
|
Aug 21 '17 at 21:40 | history | edited | Alireza | CC BY-SA 3.0 |
added 4 characters in body
|
Aug 15 '17 at 11:41 | history | edited | Alireza | CC BY-SA 3.0 |
deleted 10 characters in body
|
Jul 27 '17 at 3:01 | comment | added | LoranceChen |
git branch -a will display local and remote branches.It will be help for you diagram introduce.
|
|
Jul 21 '17 at 21:03 | audit | First posts | |||
Jul 21 '17 at 21:15 | |||||
Jul 18 '17 at 14:01 | history | edited | Alireza | CC BY-SA 3.0 |
added 3 characters in body
|
Jul 14 '17 at 11:37 | audit | First posts | |||
Jul 14 '17 at 11:54 | |||||
Jul 10 '17 at 14:32 | history | edited | Alireza | CC BY-SA 3.0 |
deleted 25 characters in body
|
Jun 28 '17 at 22:37 | history | edited | Alireza | CC BY-SA 3.0 |
deleted 2 characters in body
|
Jun 27 '17 at 13:13 | history | answered | Alireza | CC BY-SA 3.0 |