This guide covers the essential Git commands to get started with this repository. Refer: https://basic-git-guide.vercel.app and git_cheat_sheet.pdf
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
git checkout -b your-feature-branch
Use a descriptive name like
fix/readme-typo
orfeature/user-login
.
git add .
git commit -m "Your meaningful commit message"
Make sure your branch is up to date before pushing:
git pull origin main # or 'master' if your repo uses that
git push origin your-feature-branch
- Go to the GitHub repository in your browser.
- Click "Compare & pull request".
- Add a title and description for your PR.
- Submit the pull request.
git branch -d your-feature-branch # delete local
git push origin --delete your-feature-branch # delete remote