Navigate & List Files
dir
List files in current directory
cd C:\Users\YourName\Documents
Change to specific directory
cd ..
Go up one directory
Essential commands for developers
dir
List files in current directory
cd C:\Users\YourName\Documents
Change to specific directory
cd ..
Go up one directory
copy file.txt backup.txt
Copy a file
move file.txt C:\Backup\
Move file to another location
del file.txt
Delete a file
ipconfig
Show basic network configuration
ipconfig /all
Show detailed network information
ping google.com
Test connection to a website
ping 192.168.1.1
Test connection to local network device
python -m http.server 8000
Start a simple web server on port 8000
Access at: http://localhost:8000
tar -czf archive.tar.gz folder\
Create compressed archive
tar -xzf archive.tar.gz
Extract compressed archive
tar -tf archive.tar.gz
List contents of archive
Note: Requires SSH client (comes with Windows 10/11)
scp file.txt user@server:/path/to/destination
Copy file to remote server
scp user@server:/path/file.txt .
Copy file from remote server to current directory
scp -r folder user@server:/path/
Copy entire folder to remote server
git init
Initialize a new repository
git clone https://github.com/user/repo.git
Clone a repository
git status
Check current status
git add .
Stage all changes
git commit -m "Your message"
Commit changes
git push
Push to remote repository
git pull
Pull latest changes
git branch
List branches
git branch dev
Create dev branch
git checkout dev
Switch to dev branch
git checkout -b feature-branch
Create and switch to new branch
git merge dev
Merge dev into current branch
git checkout dev
Switch to development branch
git pull origin dev
Get latest dev changes
git checkout -b feature-xyz
Create feature branch from dev
# Make your changes, then:
git add .
git commit -m "Add feature XYZ"
git push -u origin feature-xyz
Push feature branch
# After review, merge to dev:
git checkout dev
git merge feature-xyz
git push origin dev
Merge feature into dev
# Deploy to production:
git checkout prod
git merge dev
git push origin prod
Merge dev into production
git stash
Save changes temporarily
git stash pop
Apply stashed changes
git stash list
List all stashes
git rebase main
Rebase current branch onto main
git rebase -i HEAD~3
Interactive rebase last 3 commits
git worktree add ../project-dev dev
Create worktree for dev branch
git worktree add ../project-prod prod
Create worktree for prod branch
git worktree list
List all worktrees
git worktree remove ../project-dev
Remove a worktree
findstr "text" file.txt
Search for text in file (Windows grep)
where python
Find location of executable
curl https://api.github.com/users/username
GET request to API
curl -o file.zip https://example.com/file.zip
Download file