[Git] Common commands

common commands note

  • git config — list
  • git config — global user.name “your account name”
  • git config — global user.email “your email”
  • git log — all — decorate — oneline — graph (tip: a dog)
  • git branch “your branch name”
  • git checkout “branch name”
  • git status
  • git commit -am “commit message” (add and message)

using terminal to open vscode

  • setting shell command of vscode (command+shift+p)
  • go to repo path and type “code .”
  • then, the vscode will auto-open your repo
  • enjoy your coding time!