GithubHelp home page GithubHelp logo

git-start's Introduction

Git-Start

간단한 리눅스 명령어

cd

  • change directory의 약자.
  • 디렉터리를 변경하는 명령어
cd test    # test 디렉터리로 이동
cd .       # 현재 디렉터리로 이동
cd ..      # 부모 디렉터리로 이동
cd ~       # home 디렉터리로 이동

mkdir

  • make directory의 약자
  • 디렉터리를 생성하는 명령어
mkdir test_dir      # test_dir 디렉터리 생성 - 새폴더

ls

  • list의 약자
  • 파일, 디렉터리 목록을 보여주는 명령어
ls                 # 현재 디렉터리에 있는 파일과 디렉터리 목록을 보여줌
ls ./test_dir      # test_dir의 파일, 디렉터리 목록을 보여준다.
ls -al             # 현재 디렉터리에 있는 파일, 디렉터리 목록을 자세히 보여준다.(옵션은 -를 붙여서 씀, -a와 -l이 더해져 있음)

cat

  • concatenate의 약자(연결하다)
  • 파일 내용을 확인할 때 사용하는 명령어
cat text.java               # test.java의 내용을 보여준다.
cat test.java | more        # test.java의 파일을 보여주되, 내용을 전부 보여주지 않고 더 보기(more) 상태로 보여줌.

<br>은 엔터, <hr> 선 긋기



Git 명령어

  • Git은 버전 관리 소프트웨어, VCS(Version Control System) 중 가장 보편적인 소프트웨어.

git init

  • git으로 버전 관리할 폴더를 저장한다.
  • .git 이라는 폴더가 생성이 됨.
git init

git add

  • 현재 추적 중이지 않은 파일을 추적 상태로 바꾸는 용도로 사용한다. (untracked --> staging)
  • 변경된 파일을 staging에 올릴 때도 사용한다. (modified --> staging)
git add test.java

git commit

  • 현재 staging 위에 올라가 있는 모든 파일들을 가지고 하나의 버전을 생성한다.
  • 하나의 버전이 생성되면 그 버전은 hash 값으로 관리된다.
git commit -m "커밋 메시지"     #메시지를 남김

git log

  • 현재 git이 관리하고 있는 폴더의 모든 커밋을 보여준다.
git log
git log --oneline

git checkout

  • 다른 브랜치 또는 다른 commit으로 이동하고 싶을 때 사용하는 명령어
git checkout 8d2bead        # 특정 커밋으로 이동
git checkout master         # master 브랜치로 이동

git push

  • github에 새로 추가된 커밋들을 업로드하는 명령어.
git push origin master       # git push [alias] [branch]

git pull

  • github에 업로드 된 커밋들을 내 로컬 브랜치로 가져오는 명령어.
git pull origin master      # git pull [alias] [branch]

git status

  • git의 현재 상태를 보여주는 명령어
git status

git merge

  • 서로 다른 브랜치에 있는 내용을 병합할 때 사용하는 명령어
  • develop --> master
git checkout master       # 병합하고자 하는 브랜치로 이동
git merge develop         # develop에 있는 내용을 master로 병합한다.



항목

  • 항목1
  • 항목2
    • 세부항목1
    • 세부항목2
      • 세세부항목1

체크박스

  • 체크박스1
  • 체크박스2

인용문구 작성 가능

텍스트

데이터를 강조하고 싶을 땐 강조 사용합니다.

데이터 강조하고 싶을 땐 강조 를 사용합니다.

코드 블럭은 Hello Class로 나타냅니다.

취소선은 취소 입니다.

코드삽입
public int add(int x, int y){
    return x + y;
}
// 주석입니다.
SELECT *
FROM users
WHERE users.id = 1;
이미지, 링크 삽입

이미지

네이버링크

git-start's People

Contributors

elegantstar avatar pjok1122 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.