티스토리 뷰

Study

git(깃) 관련

메디츠 2024. 3. 15. 16:03
반응형

17년 3월 기준.

 

git init

// 저장소 생성

 

git add

// 파일 추가

 

git commit -m 'init'

// git commit

 

git clone 주소

// git clone

 

git status

// 상태 확인

 

git remote -v

// 원격 저장소 확인

 

ssh://ossadmin@192.168.100.74/home/ossadmin/oam4_fe_git

D:/workspace/oam4_fe_git

// git clone 주소

 

git config --bool core.bare true

// push 가능하게 bare로 변경

 

Git_GUI

Rescan

// 변경 내용 검색

Stage Changed

// 변경 내용 적용

Sign Off

// 서명넣기

Commit

// 로컬 저장소에 commit. 이름, 이메일 옵션에서 설정해야 함.

Push

// 메인 저장소에 commit

 

Remote

Add

// Remote 추가. 실패해도 추가한 정보가 남으므로 Remove Remote에서 삭제해야 함.

Push

// Remote에 Push

Fetch from

// 저장소에서 가져오기

 

error: insufficient permission for adding an object to repository database

// chmod -R 747 퍼미션 변경

 

Updates were rejected because the tip of your current branch is behind

// git pull 한 다음 push해야 한다

 

refusing to merge unrelated histories git

// git pull test master --allow-unrelated-histories

 

C:\Users\msong\.ssh\id_rsa.pub

C:\Users\msong\.ssh\id_rsa

// 생성된 SSH Key 파일

 

// 저장소에는 바이너리 파일이 존재하지 않음. pull하거나 history로 확인.

 

scm tool(git, SVN, Mercurial)

 

git-ftp

git-ftp 설치후, 소스트리의 옵션-커스텀 액션에 sh 쉘스크립트를 추가해서 git을 사용하는듯.

 

github

계정+도메인. 저장소명 유니크하지 않음.

 

Setting-Danger Zone-Delete this repository

// github repository 삭제

 

Organizations-Leave

// 팀 탈퇴

 

Settings-Branches-Default branch

// 디폴트 브랜치 변경

 

 

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함