Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Practice: remote repository management #4

Open
yeonns opened this issue Mar 18, 2023 · 19 comments
Open

Practice: remote repository management #4

yeonns opened this issue Mar 18, 2023 · 19 comments

Comments

@yeonns
Copy link
Owner

yeonns commented Mar 18, 2023

Practice: remote repository management

  1. Check your remote repository list with below command
$ git remote -v
origin  [email protected]:YOUR_ID/git-practice.git (fetch)
origin  [email protected]:YOUR_ID/git-practice.git (push)
  1. Rename remote repsoitory name from origin to YOUR_ID
# result should be like below!
$ git remote -v
YOUR_ID  [email protected]:YOUR_ID/git-practice.git (fetch)
YOUR_ID  [email protected]:YOUR_ID/git-practice.git (push)
  1. Add remote repository named origin - yeonns/git-practice
# result should be like below!
$ git remote -v
origin  [email protected]:yeonns/git-practice.git (fetch)
origin  [email protected]:yeonns/git-practice.git (push)
YOUR_ID  [email protected]:YOUR_ID/git-practice.git (fetch)
YOUR_ID  [email protected]:YOUR_ID/git-practice.git (push)
  1. Fetch origin
  2. Show your result with comments!
$ git remote -v
origin  [email protected]:yeonns/git-practice.git (fetch)
origin  [email protected]:yeonns/git-practice.git (push)
YOUR_ID  [email protected]:YOUR_ID/git-practice.git (fetch)
YOUR_ID  [email protected]:YOUR_ID/git-practice.git (push)
$ git remote show origin
* remote origin
  Fetch URL: [email protected]:yeonns/git-practice.git
  Push  URL: [email protected]: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>
@CHOILHYUNQ
Copy link

$ git remote -v
CHOILHYUNQ https://github.com/CHOILHYUNQ/git-practice.git (fetch)
CHOILHYUNQ https://github.com/CHOILHYUNQ/git-practice.git (push)
origin https://github.com/yeonns/git-practice.git (fetch)
origin https://github.com/yeonns/git-practice.git (push)

@dannysboard
Copy link

KIMDAEHWAN@DESKTOP-5C710KO MINGW64 ~/git-practice (master)
$ git remote -v
dannysboard https://github.com/dannysboard/git-practice.git (fetch)
dannysboard https://github.com/dannysboard/git-practice.git (push)
origin https://github.com/yeonns/git-practice.git (fetch)
origin https://github.com/yeonns/git-practice.git (push)

@linibell
Copy link

linibell commented Apr 7, 2023

(base) bag-yelin-ui-MacBookPro:git-practice yelin$ git remote -v
linibell	https://github.com/linibell/git-practice.git (fetch)
linibell	https://github.com/linibell/git-practice.git (push)
origin	https://github.com/yeonns/git-practice.git (fetch)
origin	https://github.com/yeonns/git-practice.git (push)

@hilee0911
Copy link

naseh@LAPTOP-F2QUSORR MINGW64 ~/git-practice (master)
$ git remote -v
hilee0911 https://github.com/hilee0911/git-practice.git (fetch)
hilee0911 https://github.com/hilee0911/git-practice.git (push)
origin https://github.com/yeonns/git-practice.git (fetch)
origin https://github.com/yeonns/git-practice.git (push)

@Kim-Ha-neul
Copy link

Kim-Ha-neul commented Apr 7, 2023

Kim@DESKTOP-9HQS5PT MINGW64 ~/git/git-practice (master)
$ git remote -v
neulKimsky https://github.com/Kim-Ha-neul/git-practice.git (fetch)
neulKimsky https://github.com/Kim-Ha-neul/git-practice.git (push)
origin https://github.com/yeonns/git-practice.git (fetch)
origin https://github.com/yeonns/git-practice.git (push)

HAHA :D

@aodlfdl2
Copy link
Contributor

aodlfdl2 commented Apr 7, 2023

(base) eojinchoi@Eojinui-MacBookAir git-practice % git remote -v
aodlfdl2 https://github.com/aodlfdl2/git-practice.git (fetch)
aodlfdl2 https://github.com/aodlfdl2/git-practice.git (push)
origin https://github.com/yeonns/git-practice.git (fetch)
origin https://github.com/yeonns/git-practice.git (push)

@baegibum
Copy link

baegibum commented Apr 7, 2023

$ git remote -v
baegibum https://github.com/baegibum/git-practice (fetch)
baegibum https://github.com/baegibum/git-practice (push)
origin https://github.com/yeonns/git-practice (fetch)
origin https://github.com/yeonns/git-practice (push)

@Hyunghoon-Park
Copy link

'''sh
Hyunghoon-Park https://github.com/Hyunghoon-Park/git-practice (fetch)
Hyunghoon-Park https://github.com/Hyunghoon-Park/git-practice (push)
origin https://github.com/yeonns/git-practice.git (fetch)
origin https://github.com/yeonns/git-practice.git (push)
'''

@subin97
Copy link

subin97 commented Apr 7, 2023

$ git remote -v
origin  https://github.com/yeonns/git-practice.git (fetch)
origin  https://github.com/yeonns/git-practice.git (push)
subin97 https://github.com/subin97/git-practice.git (fetch)
subin97 https://github.com/subin97/git-practice.git (push)

@uutaein
Copy link

uutaein commented Apr 7, 2023

@YeYerin
Copy link

YeYerin commented Apr 7, 2023

$ git remote -v
origin  https://github.com/yeonns/git-practice.git (fetch)
origin  https://github.com/yeonns/git-practice.git (push)
yeyerin https://github.com/YeYerin/webpage.git (fetch)
yeyerin https://github.com/YeYerin/webpage.git (push)

@svdoit
Copy link

svdoit commented Apr 7, 2023

$ git remote -v
origin  https://github.com/yeonns/git-practice.git (fetch)
origin  https://github.com/yeonns/git-practice.git (push)
svdoit-bot      https://github.com/svdoit/git-practice.git (fetch)
svdoit-bot      https://github.com/svdoit/git-practice.git (push)

@RLADUDWN7237
Copy link

(base) youngju@Youngjuui-MacBookPro git-practice % git remote -v
origin https://github.com/yeonns/git-practice.g (fetch)
origin https://github.com/yeonns/git-practice.g (push)
youngju-bot https://github.com/RLADUDWN7237/git-practice.git (fetch)
youngju-bot https://github.com/RLADUDWN7237/git-practice.git (push)

@zjohn99
Copy link

zjohn99 commented Apr 7, 2023

origin https://github.com/yeonns/git-practice.git (fetch)
origin https://github.com/yeonns/git-practice.git (push)
zjohn https://github.com/zjohn99/git-practice.git (fetch)
zjohn https://github.com/zjohn99/git-practice.git (push)

@sihwanv
Copy link

sihwanv commented Apr 7, 2023

$ git remote -v
origin  https://github.com/yeonns/git-practice.git (fetch)
origin  https://github.com/yeonns/git-practice.git (push)
sihwanv https://github.com/sihwanv/git-practice.git (fetch)
sihwanv https://github.com/sihwanv/git-practice.git (push)

@rollco
Copy link

rollco commented Apr 7, 2023

@apfhdchl
Copy link

apfhdchl commented Apr 7, 2023

@jang-hyeonji
Copy link

C:\Users\user\git-practice>git remote -v
jang-hyeonji https://github.com/jang-hyeonji/git-practice.git (fetch)
jang-hyeonji https://github.com/jang-hyeonji/git-practice.git (push)
origin https://github.com/yeonns/git-practice.git (fetch)
origin https://github.com/yeonns/git-practice.git (push)

@Jeong-jaehoon
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests