Skip to content

BonKRrr/Git-Tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Introduction to Git and GitHub for Beginners

Welcome to this beginner-friendly guide to Git and GitHub. This repository is designed to help new developers understand the basics of version control and collaboration through Git and GitHub.


📘 What You Will Learn

  • What is Git and GitHub?
  • How to set up Git
  • Basic Git commands
  • Working with branches
  • Collaborating via GitHub
  • Other useful Git features
  • Open source contribution

⚙️ Setting Up Git

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

🔧 Initializing a Git Repository

git init

📝 Staging and Committing Changes

git add .
git commit -m "Initial commit"

🔄 Working with Remote Repositories

git remote add origin https://github.com/your-username/your-repo.git
git push origin main

🌿 Branching and Merging

git branch new-feature
git checkout new-feature
git merge new-feature

🔁 Pulling Updates

git pull

🧹 Other Useful Git Commands

git status        # View file changes
git diff          # View unstaged changes
git log           # Show commit history
git stash         # Save work temporarily
git reset --hard  # Discard all local changes

🤝 Contributing

Feel free to fork this repository and create pull requests. Contributions are welcome!


Happy coding! 💻✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 47.7%
  • HTML 42.0%
  • JavaScript 10.3%