https://github.com/pyastrolab/basic-git-guide
A Short Guide to Understand the Working of Git and Github.
https://github.com/pyastrolab/basic-git-guide
git github guide
Last synced: 2 months ago
JSON representation
A Short Guide to Understand the Working of Git and Github.
- Host: GitHub
- URL: https://github.com/pyastrolab/basic-git-guide
- Owner: pyastrolab
- Created: 2025-06-13T19:07:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-13T19:45:28.000Z (about 1 year ago)
- Last Synced: 2025-06-13T20:22:04.280Z (about 1 year ago)
- Topics: git, github, guide
- Language: HTML
- Homepage: https://basic-git-guide.vercel.app
- Size: 884 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ๐งฐ Basic Git Guide
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](https://github.com/pyastrolab/basic-git-guide/git_cheat_sheet.pdf)
### ๐ฆ Clone the Repository
```bash
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name
```
---
### ๐ง Set Up Git (if you haven't already)
```bash
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
```
---
### ๐ฟ Create a New Branch
```bash
git checkout -b your-feature-branch
```
> Use a descriptive name like `fix/readme-typo` or `feature/user-login`.
---
### ๐ Make Changes and Commit
```bash
git add .
git commit -m "Your meaningful commit message"
```
---
### ๐ Pull Latest Changes
Make sure your branch is up to date before pushing:
```bash
git pull origin main # or 'master' if your repo uses that
```
---
### ๐ Push Your Changes
```bash
git push origin your-feature-branch
```
---
### ๐ฅ Create a Pull Request
1. Go to the GitHub repository in your browser.
2. Click **"Compare & pull request"**.
3. Add a title and description for your PR.
4. Submit the pull request.
---
### ๐งน Optional: Delete Branch After Merge
```bash
git branch -d your-feature-branch # delete local
git push origin --delete your-feature-branch # delete remote
```