Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://ohshitgit.com/ru !!!
- # Info:
- git remote show origin
- git remote -v
- git remote remove origin
- git remote add origin <URL>
- # Store passwords:
- git config credential.helper store
- # Get only single file from remote origin
- git fetch
- git checkout origin/master -- path/to/file
- # Commit
- git commit -m "Initial commit"
- git push
- # Revert local changes
- git checkout -p <optional filename(s)>
- # View branches:
- git branch -a
- git show-branch
- # https://docs.moodle.org/403/en/Git_for_Administrators
- # Moodle update:
- git branch -a
- git branch --track MOODLE_311_STABLE origin/MOODLE_311_STABLE
- git checkout MOODLE_311_STABLE
- git branch -avv
- git checkout MOODLE_500_STABLE
- git fetch origin
- git reset --hard origin/MOODLE_500_STABLE
- chown -R www-data *
- # Moodle update (AI-version)
- php admin/cli/cron.php
- git fetch --all
- php admin/cli/maintenance.php --enable
- git checkout -b MOODLE_311_STABLE origin/MOODLE_311_STABLE
- git pull
- php admin/cli/upgrade.php
- php admin/cli/maintenance.php --disable
- php admin/cli/purge_caches.php
- # If collations error:
- cd admin/cli
- php mysql_collation.php --collation=utf8mb4_unicode_ci # check in config.php
Advertisement
Add Comment
Please, Sign In to add comment