mirror of
https://github.com/dwinkler1/np.git
synced 2026-02-19 22:40:57 -05:00
initialize git when setting up project
This commit is contained in:
parent
32d3fe5ed7
commit
15220f9d21
1 changed files with 7 additions and 8 deletions
|
|
@ -140,7 +140,7 @@
|
||||||
# Create essential files
|
# Create essential files
|
||||||
if [[ ! -f "README.md" ]]; then
|
if [[ ! -f "README.md" ]]; then
|
||||||
cat > README.md << 'EOF'
|
cat > README.md << 'EOF'
|
||||||
# $PROJECT_NAME
|
# RDE
|
||||||
|
|
||||||
## Project Structure
|
## Project Structure
|
||||||
- `data/`: Data files (gitignored)
|
- `data/`: Data files (gitignored)
|
||||||
|
|
@ -149,16 +149,15 @@
|
||||||
- `tables/`: Output tables
|
- `tables/`: Output tables
|
||||||
- `src/`: Source code
|
- `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
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Initialize git
|
||||||
|
if [[ ! -d ".git" ]]; then
|
||||||
|
git init
|
||||||
|
echo "✓ Initialized empty Git repository"
|
||||||
|
fi
|
||||||
|
|
||||||
# Create .gitignore
|
# Create .gitignore
|
||||||
if [[ ! -f ".gitignore" ]]; then
|
if [[ ! -f ".gitignore" ]]; then
|
||||||
cat > .gitignore << 'EOF'
|
cat > .gitignore << 'EOF'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue