Add a git pull before pushing to production to synchronize remote changes and avoid conflicts. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 42d8028a-fa71-4ec2-938c-e43eedf7df01 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/42d8028a-fa71-4ec2-938c-e43eedf7df01/aazyBOE
46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
|
|
~/workspace$ ./push-to-gitlab.sh
|
|
🚀 Push to GitLab (vt.alfacom.it)
|
|
========================================
|
|
|
|
📋 Modifiche da committare:
|
|
M .replit
|
|
M push-to-gitlab.sh
|
|
Vuoi procedere con il push? (y/N) y
|
|
Messaggio commit personalizzato (Enter per default):
|
|
|
|
📦 Git add...
|
|
💾 Git commit...
|
|
On branch main
|
|
nothing to commit, working tree clean
|
|
~/workspace$ git add .
|
|
~/workspace$ git commit -m "Deploy: $(date '+%Y-%m-%d %H:%M:%S')"
|
|
On branch main
|
|
nothing to commit, working tree clean
|
|
~/workspace$ git push production main
|
|
error: unable to read askpass response from 'replit-git-askpass'
|
|
Username for 'https://git.alfacom.it': marco@lanzara.eu
|
|
error: unable to read askpass response from 'replit-git-askpass'
|
|
Password for 'https://marco%40lanzara.eu@git.alfacom.it':
|
|
To https://git.alfacom.it/marco/VigilanzaTurni.git
|
|
! [rejected] main -> main (fetch first)
|
|
error: failed to push some refs to 'https://git.alfacom.it/marco/VigilanzaTurni.git'
|
|
hint: Updates were rejected because the remote contains work that you do not
|
|
hint: have locally. This is usually caused by another repository pushing to
|
|
hint: the same ref. If you want to integrate the remote changes, use
|
|
hint: 'git pull' before pushing again.
|
|
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
|
|
~/workspace$ git push production main
|
|
error: unable to read askpass response from 'replit-git-askpass'
|
|
Username for 'https://git.alfacom.it': marco
|
|
error: unable to read askpass response from 'replit-git-askpass'
|
|
Password for 'https://marco@git.alfacom.it':
|
|
To https://git.alfacom.it/marco/VigilanzaTurni.git
|
|
! [rejected] main -> main (fetch first)
|
|
error: failed to push some refs to 'https://git.alfacom.it/marco/VigilanzaTurni.git'
|
|
hint: Updates were rejected because the remote contains work that you do not
|
|
hint: have locally. This is usually caused by another repository pushing to
|
|
hint: the same ref. If you want to integrate the remote changes, use
|
|
hint: 'git pull' before pushing again.
|
|
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
|
|
~/workspace$ |