mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Merge branch 'retiform-master'
This commit is contained in:
commit
8854c326b9
15
README.md
15
README.md
@ -27,6 +27,7 @@ All commands should work for at least git version 2.13.0. See the [git website](
|
||||
- [Repositories](#repositories)
|
||||
- [I want to start a local repository](#i-want-to-start-a-local-repository)
|
||||
- [I want to clone a remote repository](#i-want-to-clone-a-remote-repository)
|
||||
- [I set the wrong remote repository](#i-set-the-wrong-remote-repository)
|
||||
- [Editing Commits](#editing-commits)
|
||||
- [What did I just commit?](#what-did-i-just-commit)
|
||||
- [I wrote the wrong thing in a commit message](#i-wrote-the-wrong-thing-in-a-commit-message)
|
||||
@ -152,6 +153,20 @@ To clone it into a folder with a different name than the default repository name
|
||||
$ git clone [url] name-of-new-folder
|
||||
```
|
||||
|
||||
### I set the wrong remote repository
|
||||
|
||||
There are a few possible problems here:
|
||||
|
||||
If you cloned the wrong repository, simply delete the directory created after running `git clone` and clone the correct repository.
|
||||
|
||||
If you set the wrong repository as the origin of an existing local repository, change the url of your origin by running:
|
||||
|
||||
```sh
|
||||
$ git remote set-url origin [url of the actual repo]
|
||||
```
|
||||
|
||||
For more, see [this StackOverflow topic](https://stackoverflow.com/questions/2432764/how-to-change-the-uri-url-for-a-remote-git-repository#2432799).
|
||||
|
||||
## Editing Commits
|
||||
|
||||
<a name="diff-last"></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user