Advertisement
flycat

git

Aug 16th, 2017 (edited)
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. # Info:
  2. git remote show origin
  3. git remote -v
  4. git remote remove origin
  5. git remote add origin <URL>
  6.  
  7. # Store passwords:
  8. git config credential.helper store
  9.  
  10. # Commit
  11. git commit -m "Initial commit"
  12. git push
  13.  
  14. # Revert local changes
  15. git checkout -p <optional filename(s)>
  16.  
  17. # View branches:
  18. git branch -a
  19. git show-branch
  20.  
  21. # https://docs.moodle.org/403/en/Git_for_Administrators
  22. # Moodle update:
  23. git branch -a
  24. git branch --track MOODLE_311_STABLE origin/MOODLE_311_STABLE
  25. git checkout MOODLE_311_STABLE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement