Skip to content

Commit

Permalink
pull a branch from a forked repository
Browse files Browse the repository at this point in the history
  • Loading branch information
keineahnung2345 authored Mar 10, 2023
1 parent 2179903 commit 4f3629d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Git commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,11 @@ $git remote show origin

## add origin
```sh
$git remote add origin "//xxx/yyy/zzz.git"
$git remote add <remote-name> "//xxx/yyy/zzz.git"
```

One can use this method to pull a branch from a forked repository.

## set origin(change remote url)
[How to change the URI (URL) for a remote Git repository?](https://stackoverflow.com/questions/2432764/how-to-change-the-uri-url-for-a-remote-git-repository)
```sh
Expand Down

0 comments on commit 4f3629d

Please sign in to comment.