check_latest_version && sudo apt update && sudo apt upgrade -y
Update local repository:
git pull origin main
git fetch && git merge origin/main
git status
Fix merge conflicts:
git mergetool
git add conflicted_file
git commit -m "Resolve conflicts"
Override remote changes:
git push --force-with-lease
git push --force origin main
Git push rejected because remote has changes not in local repository.
git log --oneline --graph
git remote -v
git branch -a