Coder Social home page Coder Social logo

til_test's Introduction

TIL

2022-09-21

리눅스 커맨드라인 기초

  1. pwd : print working dorectory

    • 탐색기에서 내가 현재 작업하고 있는 경로 파악 가능
  2. cd : change directory

    • 더블클릭해서 폴더 접속하는 것과 같은 역할
  3. ls : list

    • 현재 작업 경로의 파일 목록 파악 가능
      • ls -a : 숨긴 파일도 파악 가능
      • ls -l : 파일의 자세한 내용도 파악 가능
      • ls -al : 두개 다 볼 수 있음

vim 사용법

window에서 git bash를 설치 할 때, default editor로 vim을 선택했기 때문에 git을 사용하려면 반드시 vim을 사용할 줄 알아야함

명령 모드 vs 입력 모드

  1. vim 에디터를 처음 킬 때는 명령모드로 진입. 이때는 입력이 불가능함
  2. 입력을 하려면 입력 모드로 바꿔야 함
    • 입력 모드로 바꾸려면 키보드에서 i키(insert)등을 누름
  3. 입력이 다 끝나고 저장 등의 명령을 컴퓨터에게 내리려면 명령모드로 다시 돌아가야 함
    • 명령모드로 바꾸려면 키보드에서 esc키를 누름
    • 명령모드에서 :w를 입력하고 enter키를 누르면 저장만 됨(write)
    • :wq를 입력하면 저장하고 에디터에서 빠져나올 수 있음 (write and quit)
    • :q를 입력하면 에디터에서 빠져나올 수 있음(quit)

commit

정의

  • The "commit" command is used to save your changes to the local repository.
  • 커밋 하나는 독립적인 버전을 나타냄
  • The git commit command captures a snapshot of the project's currently staged changes.
  • 스냅샷(사진)과 유사

언제 커밋을 만드는가

  • logical한 변경이 있을때 커밋을 하나 만듬
  • 가능하면 커밋 단위는 작을 수록 좋음

til_test's People

Contributors

hoinnovation avatar

Stargazers

 avatar

Watchers

 avatar

til_test's Issues

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.