# Initialize
##git init
##git branch -M main

# Add the remote (SSH URL to the bare repo on your server)
#git remote add origin ssh://user@your-server-ip/srv/git/myapp.git
#git remote add origin ssh  -p 2222 intel145@209.182.212.74 -i /Users/rbutare/.ssh/id_rsaNew1
##git remote add origin 'ssh://intel145@209.182.212.74:2222/home/intel145/websites/gitrepo'
#cd ~/path/to/app1
#git init  # if not already a repo
git remote add origin 'ssh://intel145@209.182.212.74:2222/home/intel145/websites/gitrepo/app1.git'

# Optional: configure SSH key & port for this repo only
#git config core.sshCommand 'ssh -i /Users/rbutare/.ssh/id_rsa -p 2222'

git add .
git commit -m "Initial commit"
git push -u origin main

# Stage and commit
echo "# My App gitv2" > README.md
git add .
git commit -m "Initial commit"

# Push
git push -u origin main
