-
GitHub Classroom Link
https://classroom.github.com/a/Y9iW-vs6 -
Demonstration Videos
Videos explaining how to create a team and add members in a GitHub Classroom assignment:
https://drive.google.com/drive/folders/1gJgVDXgXh_6MCyiTPLQZ3PELdqIZpV88?usp=drive_link -
Google Tech Setup Guides
Documents explaining how to setup some basic Google Technologies:
https://drive.google.com/drive/folders/1gJgVDXgXh_6MCyiTPLQZ3PELdqIZpV88?usp=drive_link
1. clone the repo
git clone <classroom-repo-link> .
2.Work on project
git pull
git add .
git commit -m "Initial project setup"
git push origin main
1. clone this team repo
git clone <team-repo-link> .
git pull origin main
Make changes
git pull origin main # Always sync first
git add .
git commit -m "Your feature"
git push origin main
Install git from browser and Run
git config --global user.name "Your Name" # configure your name
git config --global user.email "your.email@example.com" # configure your github mail
for small video for reference = https://www.youtube.com/watch?v=ufKRYe8ZPaw
git clone <repository-url> # Clone repository to local
git clone <repository-url> . # Clone into current directory
git clone -b <branch> <url> # Clone specific branch
git status # Current working directory status
git log # Full commit history
git log --oneline # One-line commit history
git log --graph --oneline --all # Visual branch graph
git diff # See unstaged changes
git diff --staged # See staged changesgit add <file> # Stage specific file
git add . # Stage all changes
git add -A # Stage all changes (including deletions)
git commit -m "Your commit message" # Commit with message
git commit -am "message" # Stage & commit tracked filesgit branch # List branches
git branch -a # List all branches (local+remote)
git checkout <branch> # Switch to branch
git checkout -b <branch> # Create & switch to new branch
git branch -d <branch> # Delete local branch
git push origin --delete <branch> # Delete remote branchgit pull # Fetch & merge from remote
git pull origin main # Pull specific branch
git push origin main # Push to remote main branch
git push -u origin main # Push & set upstream
git fetch # Fetch remote changes only
git remote -v # View remote URLsgit pull origin main # Get latest changes
# Edit conflicted files manually
git add <resolved-files>
git commit -m "Resolve merge conflicts"
git push origin maingit checkout -- <file> # Discard changes to file
git reset HEAD <file> # Unstage file
git reset --hard HEAD # Discard all local changes
git revert <commit-hash> # Undo commit safelygit stash # Save uncommitted changes
git stash pop # Restore stashed changes
git stash list # List stashesDaily Workflow:
git pull origin main
# Make changes...
git add .
git commit -m "Your descriptive message"
git push origin mainEmergency Reset:
git reset --hard origin/main
git pull