Skip to content

Commit c169250

Browse files
authored
Update README.md
1 parent c99836a commit c169250

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,28 @@ There are a few possible reasons why your media query styles may not be properly
439439
[Back to top](#faqs)
440440
</details>
441441

442+
443+
<details>
444+
<summary>I am unable to push changes to the repository. What should I do?</summary>
445+
<br>
446+
447+
There are a couple of possible reasons why you may be unable to *push* changes to a Git repository:
448+
449+
1. **You have not committed your changes:** Before you can push your changes to the repository, you need to commit them using the `git commit` command. Make sure you have committed your changes and try pushing again. To do this, run the following terminal commands from the project folder:
450+
```bash
451+
git add .
452+
git commit -m "Your commit message"
453+
git push
454+
```
455+
2. **You do not have permission to push to the repository:** If you have cloned the repository directly from the main Ironhack repository without making a *Fork* first, you do not have write access to the repository.
456+
To check which remote repository you have cloned, run the following terminal command from the project folder:
457+
```bash
458+
git remote -v
459+
```
460+
If the link shown is the same as the main Ironhack repository, you will need to fork the repository to your GitHub account first, and then clone your fork to your local machine to be able to push the changes.
461+
462+
Note: You may want to make a copy of the code you have locally, to avoid losing it in the process.
463+
464+
[Back to top](#faqs)
465+
466+
</details>

0 commit comments

Comments
 (0)