Git Basic Commands

Checks your Git version git --version Settings your Git user name & email git config --global user.name "Andrew_Wu" git config --global user.email "[email protected]" Checks your configurations git config --list Get Help git help <command> #get help for a git command Creates a new git repo git init # create a new git repo, with data stored in the `.git` directory Shows current repo status git status #tells you what's going on Adds files to stage git add <filename> #adds seleted filename to stagin area git add ....

January 12, 2022 · 2 min · Andrew Wu