do |
say |
Open the CLI |
Let's go back to our terminal window. |
|
do |
say |
Type `git checkout master` |
Since our changes have already been merged to master on the remote, let's go ahead and checkout to our master branch. |
|
do |
say |
Type `git pull` |
Now we will type git pull. Git already knows that our local branch master is related to the remote branch master, so we do not need to tell git where to pull from. |
|
do |
say |
Show output |
After the pull is complete, git provides a report of the changes that were pulled from the remote and lets us know they were successfully merged. |
|
do |
say |
Type `git branch` |
You will notice that, even though you deleted the branch on GitHub, the local copy of your branch still exists. |
|
do |
say |
Type `git branch --merged` |
To see which local branches have already been merged into master, you can add the --merged option to the git branch command. Your branch should be listed. Generally, this means it is safe to delete the branch. |
|
do |
say |
Type `git branch -d <branch-name>` |
To delete the branch, simply use the git branch command with the -d option. |
|