#Git 사용법
https://roniruny.tistory.com/112
https://git-scm.com/docs
https://git-scm.com/book/ko/v2

Work Directory     Staging Area       Local Repository   Remote Repository
-----------------  -----------------  -----------------  -----------------
[git init]
   @-----[git add]------>
                              @---[git commit]---->
          <------------------[git checkout]---@
                                                        @----[git push]----->
                                                        <-----[git pull]-----@
                                                        <-----[git clone]----@

1. 신규 로컬 리파지토리 생성 및 파일 등록
1) git init                               // 빈 디렉토리를 git 리파지토리로 초기화
2) git add 파일                       // stage에 파일추가
3) git commit                         // stage의 파일을 로컬 리파지토리로 등록함
 $ git commit -m '메시지'

 $ git commit -am '메시지'        // add * commit 을 동시에 처리함.

 

2. branch 생성 및 작업
1) $ git branch new_branch          // branch 생성
2) $ git checkout new_branch       // branch 변경(이동)
3) 파일수정
4) $ git commit -am '메시지'

 

9) branch 명 변경

   $ git branch -m old_branch new_branch

 

3. 상태조회

3.1 파일 상태 확인

 $ git status

3.2 로그 조회

 $ git log --oneline      // --oneline은 메시지를 하나줄만 간략히 표시

 $ git log 파일            // 특정파일의 로그 기록 표시

3.3 로그 상세 내용 조회

 $ git show 커밋ID

3.4 브랜치 조회

 $ git branch --all

  . -r : 원격 브랜치 조회

  . -vv : 트래킹 브랜치 조회

 

4. 원격작업

4.1 서버에 전송하기

1) $ git remote add origin http://github.com/계정/리파지토리명.git    // 원격저장소를 로컬리파지토리에 등록한다.

 - origin: 원격저장소별칭으로 new, backup, fix등으로 정의할 수 있다.

2) $ git remote -v                    // 연결된 원격저장소를 조회한다.

3) $ git push origin 브랜치명     // 연결된 원격저장소(origin라면)로 소스를 전송한다.

 

4.2 서버에서 내려받기

1) $ cd 작업폴더         // clone 하면 디렉토리가 생성된다.

2) $ git clone http://github.com/계정/리파지토리명.git  새디렉토리명

 - 새폴더 이름을 적지 않는 경우, 공개저장소에 사용된 폴더와 동일한 이름으로 새 폴더를 생성함.

 

4.3 브랜치 업로드

1) $ git push -u origin 브랜치명                        // 원격저장소별칭이 origin이면

   $ git push -u origin 브랜치명:변경할브랜치명    // 다른 브랜치명으로 업로드한다. 

 

4.4 브랜치 업데이트

1) $ git pull origin 브랜치명                            // 원격저장소별칭이 origin이면

 

9. 기타작업

9.1 git 프로필 설정
$ git config user.name  "xxx"
$ git config user.email "yy@yy.com


9.2 git 프로필 조회
$ git config user.name
$ git config user.email

9.3 git 사용자이름, 메일 정조 삭제하기
$ git config --global --unset user.name       <-- unset
$ git config --global --unset user.email

 

9.4 git 설정 보기
 $ git config -list --show-origin
 
9.5 git 에디터 설정
 $ git config --global core.editor emacs
 $ git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

 

9.6  git 도움말
 $ git help

 $ git help 명령어
 $ git <verb> --help 
 

728x90

'Tools > Git' 카테고리의 다른 글

Git Hub - markdown  (0) 2022.03.31

# Visual Studio Code 사용법

1. 단축키
 - ctrl + shift + p : 명령팔레트
 - ctrl + p         : 파일이니 기호를 탐색. (? 를 입력하면 명령창에서 실행가능한 명령 목록이 나옴)
 - ctrl + g         : 특정행으로 이동
 - ctrl + shift + m : 에디터 하단의 상태 표시.
 - ctrl + k,s       : 단축키 목록
 - ctrl + `         : 터미널 창
 - ctrl + b         : 사이드 바(뷰) 열고,닫기
 - ctrl + \         : 창분할
 - ctrl + W         : 창닫기
 - ctrr+ 1, ^+2, ^+3 : 에디터간 이동
 - shift + alt + up : 행복사
 

728x90

https://www.dummies.com/programming/net/standardized-naming-conventions-for-visual-basic-net/

 

Standardized Naming Conventions for Visual Basic .NET - dummies

When you’re programming, names are important. If you’re programming with Visual Basic .NET, the following table can be a major help in getting the names right. It gives the common prefix to use when naming objects so you can quickly tell your check box

www.dummies.com

 

 

PrefixCorresponding ObjectExamplePrefixCorresponding ObjectExample

Acd ActiveDoc AcdMainPage Hpl HyperLink HplURL
Chk CheckBox ChkBoldface Lbl Label LblContents
Cbo ComboBox CboDropper Lst ListBox LstNames
Cm ADO command (database) CmMyCommand Pag Page PagTurn
Cmd CommandButton CmdExit Pgf PageFrame PgfRule
Cmg CommandGroup CmgSelectOne Prj ProjectHook PrjSuzerine
Cn Connection (database) CnMyConnex Rb RadioButton RbBlueBackground
Con Container CntFramed Rs Recordset (database) RsTotalSales
Ctr Control CtlSeeThis Sep Separator SepZone
Fld Field (database) FldTitles Spn Spinner SpnWatch
Frm Form FrmColors Txt TextBox TxtAddress
Frs FormSet FrsTypeIn Tmr Timer TmrAnimation
Grd Grid GrdGoods Tbr ToolBar TbrDropThis
Grc Column (in grid) GrcQuantity Tbl Table (database) TblTitles
Grh Header (in grid) GrhYearsResults    

참조.

 

728x90

티스토리에서, 글쓰기 모드를 "기본모드"에서 "마크다운"모드로 변환하면 빠르게 html 방식 양식으로 글을 작성할 수 있다.

 

제목1 (h1)

# 제목1 (h1)

제목2 (h2)

## 제목2 (h2)

제목3 (h3). h6까지 가능.

### 제목3 (h3)

- - - - - - - - - - - - -

인용문입니다. 새문단은 한 칸 띄우고 ">"로 라인을 분리한다.

인용문내 제목입니다.

> 인용문입니다. 새문단은 한 칸 띄우고 ">"로 라인을 분리한다.

>

> # 인용문내 제목입니다.

- - - - - - - - - - - - -

  • 별표입니다.
  • 플러스 입니다.
    • 리스트 입니다.

* 별표입니다.

+ 플러스 입니다.

   - 리스트 입니다.

- - - - - - - - - - - - -

  1. 하나

1. 하나

2. 둘

3. 셋

- - - - - - - - - - - - -

강조입니다.
**강조입니다.**

강조 이텔릭체
_강조 이텔릭체_

취소 - 중간에 줄 쫘악

취소~

취소

- - - - - - - - - - - - -

다음 링크입니다.

[다음 링크입니다.](http://www.daum.net)

- - - - - - - - - - - - -

테이블 표기

foo bar
baz bim
foo bar
| foo | bar |
| --- | --- |
| baz | bim |
| foo | bar |
abc defghi
bar baz
| abc | defghi |
| :-: | --: |
| bar | baz |

- - - - - - - - - - - - -

코드블럭

void main(String args[]) {
    println("Hello, world!");
}

```

void main(String args[]) {
println("Hello, world!");
}

```

- - - - - - - - - - - - -

수평선 - 바 셋


---

ps. 참조자료

[GitHub Flavored Markdown Spec] (https://github.github.com/gfm/)

728x90

'tistory' 카테고리의 다른 글

tistory Markdown 작성 샘플  (0) 2022.03.10
Google Adsense 배너만 보일 때  (0) 2021.04.01
highlight.js 적용하기  (0) 2019.12.30

+ Recent posts