mirror of
https://github.com/othneildrew/Best-README-Template.git
synced 2026-10-12 20:26:39 +00:00
fix(PR-#69): add changing git remote url to installation
This commit is contained in:
@@ -138,7 +138,7 @@ _Below is an example of how you can instruct your audience on installing and set
|
||||
1. Get a free API Key at [https://example.com](https://example.com)
|
||||
2. Clone the repo
|
||||
```sh
|
||||
git clone https://github.com/your_username_/Project-Name.git
|
||||
git clone https://github.com/github_username/repo_name.git
|
||||
```
|
||||
3. Install NPM packages
|
||||
```sh
|
||||
@@ -148,6 +148,11 @@ _Below is an example of how you can instruct your audience on installing and set
|
||||
```js
|
||||
const API_KEY = 'ENTER YOUR API';
|
||||
```
|
||||
5. Change git remote url to avoid accidental pushes to base project
|
||||
```sh
|
||||
git remote set-url origin github_username/repo_name
|
||||
git remote -v # confirm the changes
|
||||
```
|
||||
|
||||
<p style="text-align: right;">(<a href="#readme-top">back to top</a>)</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user