Files
first/gitea_client_uploader_comands.sh
2025-10-30 10:50:00 +05:30

31 lines
632 B
Bash

# actual
git config --global user.name "YOUR_NAME"
git config --global user.email "you@example.com"
git init
git add -A
git commit -m "first commit"
git branch -M main
git remote add origin http://192.168.1.203:3000/<user>/<repo>.git
git push -u origin main
# example snippet
git remote set-url origin http://192.168.1.203:3000/dhruv/first.git
git config --global user.name "dhruv"
git config --global user.email "yuvrajyuvrajkukreja@gmail.com"
touch README.md
git add -A
git commit -m "first commit"
git branch -M main
git push -u origin main
# After you edit files (every time)
git add -A
git commit -m "update"
git push