Skip to content

da-lincoln/git-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Git Commands Cheat Sheet

Initialize repo

git init . - Create new repo in the current folder git init REPO-NAME - Create new repository in a new folder REPO-NAME

Stage Changes

git add FILE-NAME

Commit Changes

git commit -m "DESCRIPTION OF CHANGES"

Show Commit Changes

git show

Show Log of Commits

git log

Configure the Current Repo's User Name

git config user.name "YOUR-NAME"

Configure the Current Repo's User Email

git config user.email YOUR-EMAIL

Configure the Global User Name

git config --global user.name "YOUR-NAME"

Configure the Global User Email

git config --global user.email YOUR-EMAIL

Get Status of the Project

git status

About

Git Commands Cheat Sheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published