Posts

Showing posts with the label github

Git best practices for commit message

Image
Certainly! Writing a good commit message is essential for maintaining a clean and understandable version history. The Anatomy of a Good Commit Message Short, Descriptive Title (50 characters or less) A more detailed explanation of the changes in the commit. This can span multiple lines and should provide context and background information as needed. - Bullet points can be used to list specific changes or features added or removed. - Be concise but informative. - Mention relevant issues or references if applicable. Fixes # Here are some guidelines for creating effective commit messages: Short Title: Keep the title concise and to the point. It should be under 50 characters and summarize the essence of the commit. Detailed Explanation: In the body of the message, provide a more detailed explanation of what the commit does, why it's necessary, and any background information that might be helpful. Use multiple lines if needed. Bullet Points: You can use bullet points to list specif

GitCommandsPro Your Guide to Essential Git Commands in 2024

Image
Table of Content 1 Check git version 2 Configuration Settings 3 Initializing a repository 4 Staging files 5 Viewing the status 6 Committing the staged files 7 Skipping the staging area 8. Removing files 9 Renaming or moving files 10 Viewing the staged/unstaged changes 11 Viewing the history 12 Viewing a commit 13 Unstaging files (undoing git add) 14 Discarding local changes 15 Restoring an earlier version of a file      1.     Check git version git --version 2.     Configuration Settings Levels of defining this settings are System level -  apply to All Users of computer. Global – all repositories of the current user. Local – the current repository. Or a repository in the current folder.           Name  git config --global user.name "YOUR_NAME"          Email git config --global user.email YOUR_MAIL@gmail.com          Default Editor (for setting vscode) git config --global core.editor "code --wait"           To edit all the global settings (will open the d