 
                To create a local copy of a remote repository, use:
git clone <repository-url>To see which files have changed or are untracked, use:
git statusBefore committing changes, you need to stage them using:
git add <file>Example:
git add index.htmlA commit records a snapshot of your project.
git commit -m "Describe your changes here"To see a list of previous commits:
git log --oneline --graph --decorate --allAfter committing, push changes to the remote repository:
git push origin <branch-name>Create a new branch and switch to it:
git checkout -b <new-branch-name>To merge a feature branch into the main branch:
git checkout main
git merge <branch-name>To reset the last commit but keep the changes staged:
git reset --soft HEAD~1These are the most commonly used Git commands in daily workflow:
Add all changes to staging:
git add .Commit the changes with a message:
git commit -m "week6 First text"Push changes to the repository:
git pushPull latest changes and rebase:
git pull origin master --rebaseMastering Git takes practice, but understanding these essential commands will improve your workflow and help you collaborate more effectively. Additional Resources: