User Information Configuration for Universal Application Across Local Repositories
git config --global user.name "[firstname lastname]"# set a name globally to associate your name with your Git commits
git config --global user.email "[valid email]"# set an email address that will be associated with each history maker
git config --global color.ui auto# set automatic command line to improve the readability of Git's output by color-coding different types of information,# such as branch names, status indicators, and more.
git status# show modified files in your working directory
git add [file]# add a file to the staging area in Git
git reset [file]# unstage a file from Git staging area
git diff# display the differences (or "diffs") between the changes in working directory# and the last committed version of the files in your Git repository
git diff --staged# display the differences (or "diffs") between the changes that are staged (added to the Git staging area)# and the last committed version of the files in your Git repository
git commit -m [descriptive message]# create a new commit in Git with a descriptive message, this command captures the changes that are# currently staged (added to the Git staging area) and saves them as a new commit in the Git history
Isolating work in branches, and integrating changes
git branch# show modified files in your working directory
git branch [branch-name]# to create a new branch in a Git repository with the specified branch-name, or alternativelygit checkout -b [branch-name]
git checkout# switch to another branch and check it out into working directory
git merge [branch-name]# to merge changes from one branch into another branch in Git. Specifically,# it merges the branch specified by [branch-name] into the current branch
git log# display a chronological log of commits in a Git repository