Skip to content

Latest commit

 

History

History
85 lines (43 loc) · 1.44 KB

control_git_with_gitbash.md

File metadata and controls

85 lines (43 loc) · 1.44 KB

gitbash - command


git init

  • Assign current folder to git

git add

  • Track untracked file / Track changes

git restore

  • Restore uncommit changes

git commit

  • Log some changes(changed code, date, author, msg...)

git push

  • Upload codes that changed to remote repository

git fetch

  • Bring changes to local from repository

git pull

  • Bring / Merge changes to local from repository

git status

  • View untracking files / uncommit codes

git config --global email/name

  • Configurate email / name on global(desktop user info)

git clone

  • Clone repository on desktop

git remote add

  • Register in remote repository

git reflog

  • Check commit log

Local folder

git init

Working directory

git add

Staging area

git commit

Local repository(.git file)

git push

Remote repository


  • +) 여러가지를 수정하고 원하는 부분(라인)만 골라서 commit 하는 것은 git bash 로는 불가능.

  • +) 따라서 git bash만 이용하는 경우에는 commit할 부분만 수정한 후 바로 commit, 수정

Thinking !

  • What does "staging area" do ?