/Github_demo

A demo github repository to show Carto Development team the benefits of Git / Stash

Primary LanguagePython

Github_demo

A demo github repository to show Carto Development team the benefits of Git / Stash

##The process of using git and stash/github

###Pre-requisites:

  • Git installed (from the appportal or [https://git-scm.com/downloads]
  • An account on Stash (Heat Ticket) or Github (Free - there is also an ordnance survey account)
  1. Create or select a repository
  2. Pull the repository (if using an existing repo)
  3. Change to or create a new branch (subject to the teams git protocol)
  4. Check the status of the repository (to ensure it is in the expected state)
  5. Make changes to a file
  6. Add the unstaged changes to the git staging area (little and often)
  7. Check the status of the repository (to ensure it is in the expected state)
  8. Commit the changes to the local repository (with a relevant brief message - as per the git and teams protocol)
  9. Repeat steps 4-7 until all required changes are have been made
  10. Check the status of the repository (to ensure it is in the expected state)
  11. Push the changes to the remote repo (or merge dependant on team git protocol)

##Resources: