Commits and work cycle Presenter: Steve Baskauf - - PowerPoint PPT Presentation

commits and work cycle
SMART_READER_LITE
LIVE PREVIEW

Commits and work cycle Presenter: Steve Baskauf - - PowerPoint PPT Presentation

Commits and work cycle Presenter: Steve Baskauf steve.baskauf@vanderbilt.edu CodeGraf landing page vanderbi.lt/codegraf What is a commit? Branches and commits branch commits time Markdown markup syntax Markdown basics (GitHub flavored


slide-1
SLIDE 1

Commits and work cycle

Presenter: Steve Baskauf steve.baskauf@vanderbilt.edu

slide-2
SLIDE 2

CodeGraf landing page

  • vanderbi.lt/codegraf
slide-3
SLIDE 3

What is a commit?

slide-4
SLIDE 4

Branches and commits

branch

commits

time

slide-5
SLIDE 5

Markdown markup syntax

slide-6
SLIDE 6

Markdown basics (GitHub flavored Md)

  • headings

# level 1 ## level 2 ### level 3

  • text enhancements

*italics* **bold** `inline code`

  • unordered bulleted list
  • item 1
  • item 2
  • item 3
slide-7
SLIDE 7

GitHub flavored Markdown (cont.)

  • line breaks

line 1 line 2

  • hyperlink

[link text](url)

  • table

| header1 | header2 | | --- | --- | | row1cell1 | row1cell2 | | row2cell1 | row2cell2 |

slide-8
SLIDE 8

Committing online

slide-9
SLIDE 9

The World of Git and GitHub

repository on GitHub repository on local drive

push pull

web interface

direct commit drive folder Git staging area commit add file

  • nline
slide-10
SLIDE 10

Code editors

slide-11
SLIDE 11

Code editors

  • code editors do not add

nasty "invisible" characters to documents (as does Microsoft Word)

  • full-featured code editors

provide automatic formatting and syntax highlighting based on the type of document you are editing

slide-12
SLIDE 12

Recommended code editors

  • Atom
  • Created by the GitHub team, so can interact in special ways with GitHub
  • Has an easy-to-use Markdown preview so that you can see how your markup

will look

  • Has cuter emblems!
  • https://atom.io/
  • VS Code
  • Very full featured and has powerful tools for debugging some coding

languages

  • https://code.visualstudio.com/
slide-13
SLIDE 13

Work cycle

slide-14
SLIDE 14

The World of Git and GitHub

repository on GitHub repository on local drive

push pull

web interface

direct commit drive folder Git staging area commit add file

slide-15
SLIDE 15

Work cycle

  • Always start a work session by pulling changes from GitHub
  • Always end a work session by pushing changes to GitHub

edit commit push edits to GitHub possible changes by others or you elsewhere pull changes from GitHub select repo and branch to work on (if necessary)

Github work cycle

(time elapses) (time elapses)