-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Practice: remote repository management
- Check your remote repository list with below command
$ git remote -v
origin git@github.com:YOUR_ID/git-practice.git (fetch)
origin git@github.com:YOUR_ID/git-practice.git (push)- Rename remote repsoitory name from origin to YOUR_ID
# result should be like below!
$ git remote -v
YOUR_ID git@github.com:YOUR_ID/git-practice.git (fetch)
YOUR_ID git@github.com:YOUR_ID/git-practice.git (push)- Add remote repository named origin -
yeonns/git-practice
# result should be like below!
$ git remote -v
origin git@github.com:yeonns/git-practice.git (fetch)
origin git@github.com:yeonns/git-practice.git (push)
YOUR_ID git@github.com:YOUR_ID/git-practice.git (fetch)
YOUR_ID git@github.com:YOUR_ID/git-practice.git (push)- Fetch origin
- Show your result with comments!
$ git remote -v
origin git@github.com:yeonns/git-practice.git (fetch)
origin git@github.com:yeonns/git-practice.git (push)
YOUR_ID git@github.com:YOUR_ID/git-practice.git (fetch)
YOUR_ID git@github.com:YOUR_ID/git-practice.git (push)
$ git remote show origin
* remote origin
Fetch URL: git@github.com:yeonns/git-practice.git
Push URL: git@github.com:yeonns/git-practice.git
HEAD branch: master
Remote branches:
feat/about-me tracked
master tracked✔️ Hints
# rename remote repository
$ git remote rename <OLD_NAME> <NEW_NAME>
# add remote repository
$ git remote add <REPOSITORY_NAME> <REPOSITORY_ADDRESS>
# fetch remote repository
$ git fetch <REPOSITORY_NAME>Kim-Ha-neul
Metadata
Metadata
Assignees
Labels
No labels