Skip to main content

Git Development Workflow

This is a first draft, very basic guide how to get GIT setup on windows, and commit code to TEST.

Documentation:

Install msysgit

Run Git from the Windows Command Prompt

  • checkout as-is, commit unix-style line endings

Install tortoise

  • OpenSSH, git default ssh client

Before making commits, it is useful to add your name and email:

  • git config —global user.name “Your Name”
  • git config —global user.email yourmail@domain.tld
  • git clone https://YOUR_GITHUB_USERNAME@github.com/ccle/moodle.git ./YOUR_LOCAL_MOODLE_FOLDER/
  • git checkout DEV
  • (OPTIONAL) git checkout -b <feature_name>
  • change file
  • git commit -a -m "updating README.README.txt to include basic git instructions”instructions"
  • git push origin DEV (or feature_name if working on a feature branch)

if working on feature branch:

  • git checkout DEV
  • git merge --no-ff <feature_name>
  • git push

Then:

  • git checkout TEST
  • git merge DEV
  • git push