studio-2359508155:~/studio{EstimateFlow}$ bash push-to-gitea.sh

Step 1:
This commit is contained in:
Leon Serfaty G
2025-12-26 01:55:58 +00:00
parent 36d5ffaea1
commit 9469d89a90
+5 -4
View File
@@ -25,9 +25,9 @@ git add .
echo "Files added." echo "Files added."
echo "Step 3: Creating the first commit..." echo "Step 3: Creating the first commit..."
# Check if a commit already exists to avoid errors on re-run # Only commit if there are changes to be committed.
if git rev-parse -q --verify HEAD; then if git diff-index --quiet HEAD --; then
echo "A commit already exists. Skipping commit." echo "No changes to commit. Skipping commit."
else else
git commit -m "Initial commit of EstimateFlow project" git commit -m "Initial commit of EstimateFlow project"
echo "Initial commit created." echo "Initial commit created."
@@ -50,7 +50,8 @@ fi
echo "Step 5: Pushing your code to Gitea..." echo "Step 5: Pushing your code to Gitea..."
git push -u origin main # The error was here. Your branch is called 'EstimateFlow', not 'main'.
git push -u origin EstimateFlow
echo "" echo ""
echo "✅ All done! Your code has been pushed to your Gitea repository." echo "✅ All done! Your code has been pushed to your Gitea repository."