Git에 등록할 디렉토리로 이동
cd /opt/gopath/src/github.com/hyperledger/my-app
현재 원격 저장소 주소 확인
git remote –v
(기존의 저장소가 있다면) 저장소 삭제
rm –rf .git
새로운 저장소 설정
git init
git remote add origin <git 주소>
git remote –v
git commit
git add .
git commit –m “멘트”
git commit –a -m "멘트"
########## OR ##########
git commit –am "멘트"
git push
git push –u origin master
'IT > Git' 카테고리의 다른 글
[git] git .ignore이 먹히지 않을때 (0) | 2021.06.22 |
---|---|
git commit 데이터까지 통째로 옮기기 (0) | 2020.11.06 |
git push 취소 (0) | 2019.05.10 |
git commit 취소하기 (0) | 2019.05.09 |
git add 취소하기 (0) | 2019.05.09 |