You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -290,23 +290,22 @@ __Happy coding!__ :heart:
290
290
<summary>I am unable to push changes to the repository. What should I do?</summary>
291
291
<br>
292
292
293
-
There are a couple of possible reasons why you may be unable to *push* changes to a Git repository:
293
+
There are a couple of possible reasons why you may be unable to *push* changes to a Git repository:
294
294
295
-
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:
295
+
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:
296
296
```bash
297
297
git add .
298
298
git commit -m "Your commit message"
299
299
git push
300
300
```
301
+
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.
302
+
To check which remote repository you have cloned, run the following terminal command from the project folder:
303
+
```bash
304
+
git remote -v
305
+
```
306
+
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.
301
307
302
-
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.
303
-
To check which remote repository you have cloned, run the following terminal command from the project folder:
304
-
```bash
305
-
git remote -v
306
-
```
307
-
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.
308
-
309
-
Note: You may want to make a copy of the code you have locally, to avoid losing it in the process.
308
+
Note: You may want to make a copy of the code you have locally, to avoid losing it in the process.
0 commit comments