Configuring user information
git config --global user.name "your username"
git config --global user.email "your email"
Create a new local repository
git clone <repository-url>
Add a file to the staging area in Git
Add all files in the staging area in Git
Check a repository's status in Git:
Commit changes with a message in Git
git commit -m "your commit message here"
To Check the unstaged changes
Add changes made to track files and commit
git commit -a -m "Your Message"
Reset staging area from last commit
Remove a file from the index and working directory
git checkout <branch name>
git branch -d <branch name>
Sync your fork or your local repository with the origin repository
Push your local commits to the remote repository
git push origin YourBranchName
To pull changes from a remote repo in Git
To get the contents of remote branches in Git without automatically merging
To push a new branch to a remote repo in Git
git push -u origin branch_name
To force a push request in Git