git init
Initializes a new Git repository in your current project directory.
git add
Stages changes (files) to be committed to the repository.
git commit
Commits the staged changes with a message to the local repository.
git push
Pushes local commits to a remote repository (e.g., GitHub).
git status
Displays the state of the working directory and staging area.
git log
Shows the commit history of the repository.
git branch
Lists all branches or creates a new branch.
git branch -M
Renames a branch, forcing the rename if necessary.
git config username
Sets the Git username for commit authorship.
git config email
Sets the Git email address for commit authorship.
git remote add origin
Links your local repository to a remote repository.
After modifying
git add .
git commit
git push