Git Command - Hercules-Admin/Hercules GitHub Wiki

Git Command
●Config account
 git config --global user.email [email]
 git config --global user.name [name]

●Create local repository
 Khoi tao repository
  git init
  git init [folder name]

 To Track file
  git add [file_name] or git add *

 To view status
  git status

●Create repository on github.com
 To clone
  git clone [address]

 To commit
  git commit [file_name] -m [command]
 To push changed to server github.com
  git push
     account:
     pass:
 To Compare
  git diff HEAD^ HEAD // compare 2 version lien tiep
  git diff HEAD~2 HEAD // compare 2 version bat ki

⚠️ **GitHub.com Fallback** ⚠️