Git Guide for Beginners¶
I've provided this guide because as someone who came out of arts, I remember struggling with Github projects and how to use them in my own work. I hope it helps.
Table of Contents¶
- What is Git?
- Git vs. GitHub: What's the Difference?
- Why is Node Weaver on Github?
- Installing Git
- Windows
- Mac
- Linux (Ubuntu/Debian)
- Common Git Tasks
- Getting Node Weaver for the First Time
- Updating Node Weaver
- What If You Made Changes?
- Visual Git Tools
- Troubleshooting
- "Git isn't recognized as a command"
- "Permission denied" Errors
- "Refusing to merge unrelated histories"
- Changes Not Downloading
- Still Stuck?
What is Git?¶
Git is like a very powerful "Save As" for your projects. It: - Keeps track of all changes you make - Lets you go back to any previous version - Helps you get updates without losing your changes - Makes it easy to share improvements with others
Git vs. GitHub: What's the Difference?¶
- Git is the tool that tracks changes on your computer
- GitHub is the website where people share their Git projects
- In other words:
- Git = The tool you write with
- GitHub = The library where you share your writing
Why is Node Weaver on Github?¶
Downloading Node Weaver using Git gives you several benefits: 1. Easy Updates: Get new features and fixes with a single command 2. Safe Customization: Make your own changes without breaking updates 3. Contribution: Share your improvements if you want to 4. History: Track changes you make to your tools
Installing Git¶
Windows¶
- Download Git from git-scm.com
- Run the installer
- Use these recommended settings:
- When asked about line ending conversions, choose "Checkout as-is, commit as-is"
- For the default editor, choose "Visual Studio Code" if you have it, or "Notepad" if not
- For everything else, the defaults are fine
Mac¶
- Open Terminal
- Type
git --version
- If Git isn't installed, macOS will prompt you to install it
Linux (Ubuntu/Debian)¶
Common Git Tasks¶
Getting Node Weaver for the First Time¶
# 1. Open Terminal (Mac/Linux) or Git Bash (Windows)
# 2. Go to where you want to install. For example, the Documents folder
cd Documents
# 3. Get Node Weaver
git clone https://github.com/edwardmakesthings/Node-Weaver.git
Updating Node Weaver¶
What If You Made Changes?¶
If you've modified any Node Weaver files and try to update, Git will warn you. Here's what to do:
-
If you want to keep your changes:
-
If you want to discard your changes:
Visual Git Tools¶
If you prefer using a visual interface instead of commands, try these free tools: - GitHub Desktop - Simplest option, works with GitHub - Sourcetree - More powerful, but more complex - Visual Studio Code - Good if you also write code
Troubleshooting¶
"Git isn't recognized as a command"¶
- Windows: Reinstall Git and make sure to select "Add to PATH" during installation
- Mac/Linux: Make sure Git is installed by running
git --version
"Permission denied" Errors¶
- Make sure you're not in a protected folder (like Program Files on Windows)
- Try running your terminal/Git Bash as administrator
"Refusing to merge unrelated histories"¶
Changes Not Downloading¶
- Make sure you're connected to the internet
- Try forcing an update:
Still Stuck?¶
- Check if others had the same issue in the Issues section
- If not, feel free to open a new issue
- Include:
- What you were trying to do
- The exact error message
- What you've tried so far
Remember: Everyone was a beginner once. Don't be afraid to ask for help!