Basic Terminal Navigation
Before using Git commands, you need to know how to move around your computer's folders inside the terminal.
Before using Git commands, you need to know how to move around your computer's folders inside the terminal.
# pwd (Print Working Directory) -> Shows where you currently are
pwd
# ls (List) -> Lists all files and folders in your current directory
ls
# cd (Change Directory) -> Move inside a folder
cd folder-name
# Go back up one folder level
cd ..
# mkdir (Make Directory) -> Create a brand new folder
mkdir my-cool-project
Initializing & Cloning
Once you are inside your project folder (cd my-cool-project), you can start tracking it with Git.
If the project is already online, download it to your machine instead:
Once you are inside your project folder (cd my-cool-project), you can start tracking it with Git.
# Turn the current folder into a local Git repository
git init
# Check if Git is successfully watching your files
git status
If the project is already online, download it to your machine instead:
# Download a repository from GitHub to your local computer
git clone https://github.com/username/repository-name.git
Saving Changes (Stage & Commit)
Think of Git like a video game. You need to choose what to save, and then hit the checkpoint.
Think of Git like a video game. You need to choose what to save, and then hit the checkpoint.
# 1. See what files you have changed (they will show up in RED)
git status
# 2. Add a specific file to the staging area
git add index.html
# 3. Shortcut: Add ALL changed/new files at once
git add .
# 4. Check status again (staged files will now be GREEN)
git status
# 5. Commit (save) your changes with a clear message
git commit -m "Feat: implement responsive footer layout"
Branching: The Ultimate Safety Net
Never break the working version of your code. Always create a parallel branch to build new features.
Never break the working version of your code. Always create a parallel branch to build new features.
# Create a new branch called 'feature-login'
git branch feature-login
# Switch your terminal focus to that new branch
git checkout feature-login
# 🔥 PRO-TIP (Shortcut): Do both at the exact same time
git checkout -b feature-login
# See a list of all branches (the active one has an *)
git branch
Syncing with GitHub (Push & Pull)
Once you've made commits locally, it's time to send them up to GitHub.
Once you've made commits locally, it's time to send them up to GitHub.
# Link your local terminal project to a GitHub repository URL
# (You only need to do this ONCE per project)
git remote add origin https://github.com/username/repo-name.git
# Push your local commits up to your GitHub repository
git push -u origin main
# Pull down updates your teammates made on GitHub to keep your machine in sync
git pull origin main
Setting Up Git
If you haven’t configured Git on your machine yet, run these commands in your terminal:
If you haven’t configured Git on your machine yet, run these commands in your terminal:
# Set your global username
git config --global user.name "YourName"
# Set your email (use your GitHub email)
git config --global user.email "your_email@example.com"
OpenNotes
A beautiful, modern, cross-platform productivity workspace and note-taking application designed to keep your tasks, projects, college notes, and habits organized.
🔗 Links:
- Download
- Screenshots
- Features
- Source code
Developer: rajsriv
tags: #windows #mac #linux #notes
A beautiful, modern, cross-platform productivity workspace and note-taking application designed to keep your tasks, projects, college notes, and habits organized.
🔗 Links:
- Download
- Screenshots
- Features
- Source code
Developer: rajsriv
❤️ Support the Project
If this project makes your life easier, here are a few quick ways to show some love:
⭐️ Star the repo/app
☕️ Buy a coffee for the developer
🛠 Contribute code, issues, or pull-requests
tags: #windows #mac #linux #notes
❤2
Features of OpenNotes:
• Project & Task Tracker: Organize your daily priorities, habits, and tasks.
• College Notes Organizer: Import PDF lecture notes and organize them into subject folders.
• Built-in Document Viewer: View your PDFs or rich-text notes in a beautiful fullscreen experience.
• Cross-Platform: Available on Linux, Windows, and macOS.
• Dark & Light Themes: Premium design that adapts to your system preferences.
• Project & Task Tracker: Organize your daily priorities, habits, and tasks.
• College Notes Organizer: Import PDF lecture notes and organize them into subject folders.
• Built-in Document Viewer: View your PDFs or rich-text notes in a beautiful fullscreen experience.
• Cross-Platform: Available on Linux, Windows, and macOS.
• Dark & Light Themes: Premium design that adapts to your system preferences.