From b02628195fdb337718374b416c5047f8e585e626 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sat, 17 Apr 2021 00:29:20 +0100 Subject: [PATCH] Add branch tips --- Git-Tips.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Git-Tips.md b/Git-Tips.md index e4334d4..e956580 100644 --- a/Git-Tips.md +++ b/Git-Tips.md @@ -46,6 +46,11 @@ More information is available in the [Contributing guidelines][contributing]. 1. Once you're ready, push your local commits (`git push`) - for the first commit on a new branch, use (`git push -u origin `) +# Branches + +1. You can delete local branches when you are done with them (`git branch -d `) +1. You can also update your refs to reflect any remote branches that have been deleted (`git fetch --prune`) + # Rewriting history **NOTE: IF YOU DO NOT KNOW EXACTLY WHAT YOU ARE DOING, DO NOT MESS AROUND WITH THE GIT HISTORY**