Git 명령어

Joo Yeong Park·2021년 1월 21일
0

develop

목록 보기
7/8

가끔 사용하는 git 명령어들을 계속 추가할 예정
GitHub Docs

시작

git config

  • username 변경
      $ git config --global user.name "zu0p"
  • username 확인
    $ git config --global user.name
    > zu0p

git remote

  • repositoy에 내 저장소의 파일 올릴 때
     $ git remote add origin <REMOTE_URL>
  • remote url을 변경하고 싶을 때
    현재 연결되어있는 url확인->변경
     $ git remote -v
    👇현재 연결된 깃 url
  > origin git@github.com:zu0p/REPOSITOY.git (fetch)
  > origin git@github.com:zu0p/REPOSITOY.git (push)
   $ git reomte set-url origin <변경할 URL>
profile
웹 개발자를 꿈꾸는 삐약

0개의 댓글