Giter VIP home page Giter VIP logo

github-practice's Introduction

Practice

Quick Start

  1. git repo 생성 및 폴더 생성
  2. echo "# github-practice" >> README.md
  3. git init
  4. git add README.md
  5. git commit -m "first commit"
  6. git branch -M main
  7. git remote add origin [email protected]:moonhyun94/github-practice.git
  8. git push -u origin main

SSH

.ssh 폴더 안에 있는 id_rsa.pub을 등록하면 매번 번거롭게 로그인 하지 않아도 됨


Pull Request

  1. pull request를 보내고자 하는 repo를 fork

  2. fork 한 repo를 local에 clone (ex: upstream)

  3. 12 http는 fork한 repo의 주소

  4. git remote -v 를 통해 잘되었는지 체크한 뒤 git fetch upstream

  5. git checkout upstream/main(=branch-name) => upstream의 main branch로 변경

  6. git branch -a 를 통해 현재 어떤 branch를 사용하고 있는지 체크 가능

  7. 13
    나의 main branch로 돌아와 git merge upstream/main => 나의 fork repository와 original repository간 merge

  8. 나의 repo에서 code 등을 수정하고 pull request를 보냄

  9. 나의 request가 confirm 되면 적용됨


Linux Commands

  • cd (change directory)
  • ls / ls -a : 현재 디렉토리 파일 list
  • echo
  • cat [file-name] : file안의 내용 출력
  • rm [file-name] : remove file
  • rm -rf [folder-name] : 폴더 강제 삭제
  • pwd (print working directory) : 현재 디렉토리 출력

Vim

terminal에서 사용 가능한 editor

  • vi file.txt : 파일을 생성 or 파일을 읽음
  • i 로 insert mode
  • :w 로 저장
  • :q 로 exit

github-practice's People

Contributors

moonhyun94 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.