Skip to content

x-cmd-skill/dev-dir-to-git-dir-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-dir-to-git-dir-sync

Sync between clean development directory and git repository.


Problem

You want to develop in a clean workspace without .git/, LICENSE, or other repo artifacts, but still need to commit to a git repository.

Solution

Maintain two directories:

  • dev/ - Clean workspace for active development
  • repo/ - Git repository with .git/, LICENSE, etc.

Quick Start

# 1. Copy sync.sh to your dev directory
cp sync.sh /path/to/your/dev/
cd /path/to/your/dev

# 2. Edit paths in sync.sh
DEV_DIR="/path/to/your/dev"
REPO_DIR="/path/to/your/repo"

# 3. Use it
./sync.sh push   # Dev → Repo (prepare for commit)
./sync.sh pull   # Repo → Dev (after pull)

Documentation

License

Apache-2.0

About

Sync between clean dev directory and git repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages