Linux Git command git config -- global user. name "example" git config -- global user. email "example@example.com" git config -- global core. editor emacsgit config -- global color. status autogit config -- global color. diff autogit config -- global color. branch autogit config -- global credential. helper cachegit config -- global credential. helper 'cache -- timeout = 3600 'git config -- global -- list add alias gs = 'git status' in. bashrc Two ways to get a repositoryClone someone else's-git cloneMake your own-git init git add *. c (add all C source files in the current folder) git add \*. c (add all C source files in the current folder and all subfolders) git add. (add everything, be careful) git commit-agit commit-m <comment> git commit -- amend git rm <file> ---- removes <file> from Git and deletes it as wellgit rm -- cached <file> leaves it hanging in the directory, it's just gone from git mv <src> <dst> git loggit log <path> git diffgit diff -- cached edit. submit --- the files you don't want to save git branch --- inspect the branchesgit checkout branch_a --- switch to branch agit checkout-B branch_ B --- create branch B and switch to bgit merge branch_agit mergetool ---