티스토리 뷰
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
// 디폴트 브랜치 변경
'Study' 카테고리의 다른 글
Java(자바) domain(도메인) IP(아이피) 확인 (0) | 2024.03.15 |
---|---|
Java(자바) XML request (0) | 2024.03.15 |
MySQL(마이에스큐엘) 관련 (1) | 2024.03.15 |
DB(디비) Tool(도구) 관련 (0) | 2024.03.15 |
Java(자바) Linux(리눅스) Command Execute(명령어 실행) (0) | 2024.03.15 |