GIT : Cheat Sheet

GIT : Cheat Sheet


First Steps : Start and Configure A Git

Command Description
git init Creates a new Git repository in the current folder.
git config –global -l Sets or views Git settings, like username and email ,…
git config $option “text” Sets a Git configuration option to a specified value.

Day-to-Day Work :

Command Description
git status Displays the current status of the working directory and staging area.
git add $File_Name Stages a file for the next commit.
git commit -m “Message” Records changes to the repository with a descriptive message.
git diff Displays differences between changes and the last commit.
git log –oneline Displays a concise summary of commits in a single line.

Files :

Command Description
.gitconfig File Stores Git settings like username and preferences.
.gitignore file specifies files and directories for Git to ignore.



Source link
lol

By stp2y

Leave a Reply

Your email address will not be published. Required fields are marked *

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.