Merge branch 'retiform-master'

This commit is contained in:
Richard Littauer 2018-11-28 08:48:05 -05:00
commit 8854c326b9
1 changed files with 15 additions and 0 deletions

View File

@ -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>