Permalink
Please sign in to comment.
Browse files
Create rename-local-branch
Update and rename rename-local-branch.md to How-to-Rename-a-Local-Branch.md Changes to remove html
- Loading branch information...
Showing
with
16 additions
and 53 deletions.
16
How-to-Rename-a-Local-Branch.md
@@ -0,0 +1,16 @@ | ||
+# How to Rename a Local Branch | ||
+- If you're **on the branch** you want to rename: | ||
+ | ||
+ ```bash | ||
+ git branch -m new_name | ||
+ ``` | ||
+ | ||
+- If you're on a <b>different</b> branch: | ||
+ | ||
+ ```bash | ||
+ git branch -m old_name new_name | ||
+ ``` | ||
+ | ||
+## What is the difference between '-m' and '-M' | ||
+- `-m` stands for "move" (or `mv`), which is how you rename files. It can throw an error if the branch with the same name exists. | ||
+- But if you want to **force save** your branch, use '-M' instead. |
53
Installing WordPress locally on Mac.
@@ -1,53 +0,0 @@ | ||
-# Installing WordPress locally on Mac. | ||
-Installing WordPress locally will allow you to build themes safely and will allow you to try out WordPress for free without paying for hosting. | ||
- | ||
-## Required Downloads: | ||
-- [MAMP](https://www.mamp.info/en/) | ||
-- [WordPress](https://wordpress.org/about/) | ||
- | ||
-The first step to installing WordPress locally is to download MAMP. MAMP stands for Macintosh, Apache, MySQL, and PHP. This is the local server that will run the new install of WordPress. Installing MAMP should be easy because it is like installing any other app. | ||
- | ||
-After MAMP is installed you will want to uninstall MAMP pro. To do this, just navigate to your applications folder and find the MAMP pro folder. There will be an uninstaller inside of this folder. I chose to click all of the check boxes, since it is a fresh install of MAMP. | ||
- | ||
-## Configuring MAMP | ||
-Open the MAMP application and you should be greeted with this screen: | ||
- | ||
-We have to set some preferences so click the preferences icon. On the preferences screen click `Ports`. | ||
- | ||
-Here you can leave the ports as is which will require you to include the port number in the URL `localhost:8888`. | ||
- | ||
-If you don't want to include the port number in the URL, you can change the Apache and MySQL ports to 80. The reason I chose not to do this is because you will always be asked for your password | ||
- | ||
-Next you will click the Apache tab and set a document root. I chose to create a new folder called "Sites" in my user folder. | ||
- | ||
-Now that we are done editing all of the settings, hit OK to save. | ||
- | ||
-## Starting MAMP | ||
-To start MAMP click "Start Servers." | ||
- | ||
-This should open a new window with the address `http://localhost:8888/MAMP/?language=English` in your web browser. | ||
- | ||
-If your browser didn't open, you should be able to click `Open WebStart page`. | ||
- | ||
-Creating a Database | ||
- | ||
-The next step is to click the `phpMyAdmin` link under MySQL which will take you to this page: | ||
- | ||
-Click new in the left navigation menu. | ||
- | ||
-Enter a name for the Database and then click create. I chose "WordPress." | ||
- | ||
-## Installing WordPress | ||
-Unzip the WordPress file that you downloaded and drag it's contents into the folder you created earlier as your document root. | ||
- | ||
-Once the files are copied, go to `localhost:8888`. | ||
- | ||
-Choose you language and at the next screen click `Let's Go`. | ||
- | ||
-Enter the name of the Database you created, and "root" for the username and password, and click submit. | ||
- | ||
-Click `Run the install`, and on the next screen enter the details for your log in. | ||
- | ||
-Click `Submit`, and you will be taken to the log in for your local hosted WordPress. | ||
- | ||
-Success! Log in with the username and password you created. |
0 comments on commit
66eef9b