initialize git when setting up project

This commit is contained in:
Daniel Winkler 2025-08-28 21:46:37 +10:00
commit 15220f9d21

View file

@ -140,7 +140,7 @@
# Create essential files
if [[ ! -f "README.md" ]]; then
cat > README.md << 'EOF'
# $PROJECT_NAME
# RDE
## Project Structure
- `data/`: Data files (gitignored)
@ -149,16 +149,15 @@
- `tables/`: Output tables
- `src/`: Source code
## Usage
- Julia environment: `$PROJECT_NAME-jl`
- Python environment: `$PROJECT_NAME-m` (Marimo)
- R environment: `$PROJECT_NAME-r`
- Neovide: `$PROJECT_NAME-g`
- Neovim: `$PROJECT_NAME`
- Update: `$PROJECT_NAME-updateDeps`
EOF
fi
# Initialize git
if [[ ! -d ".git" ]]; then
git init
echo " Initialized empty Git repository"
fi
# Create .gitignore
if [[ ! -f ".gitignore" ]]; then
cat > .gitignore << 'EOF'