4. Meet Dataform: SQL pipelines made tidy
4.4 Commit, push, pull request: Git in Dataform
Highlights & notes
Select lesson text to highlight it, or tap Add note.
Bookmarks
Bookmark a lesson to see it here.
Dataform keeps every change in Git, the tool that programmers use to track versions. You do not need the command line. The buttons are in the workspace.
- Commit: save a snapshot of your changes, with a short message that says what you did
- Push: send your commits to the shared repository
- Pull: bring your teammates' newest changes into your workspace
- Pull request: ask a teammate to review your changes before they go into
main
Each workspace is a branch: your own line of work. main is the branch that production runs. Nothing reaches main without a review.
Write commit messages that finish the sentence "This change will…". Good: Add nonNull test to stg_orders. Bad: changes, fix, final.
From an edit to main
The five steps of every change.
Workflow
edit stg_orders.sqlxcommit "Add nonNull test to stg_orders"pushopen a pull requestreview, then merge to main
Result
main now contains: Add nonNull test to stg_orders
Quick check
Which step asks a teammate to review your change?
Start the day with a pull
Someone else changed main yesterday.
Workflow
main has a new commit from Ravipullcontinue your own work
Result
workspace = main + your new work
Quick check
Why pull before you start working?
Try it yourself
1. Change a description in one of your files and click Commit. Write a clear message.
2. Open the commit history of the workspace and find your message.
Question 1 · Easy
What does a commit do?
Question 2 · Medium
Which branch does production run?
Question 3 · Hard
Which commit message is the most useful a year later?
Key takeaways
Work in your own branch: commit with a clear message, push, and open a pull request. Pull often. Only reviewed changes reach main.
Save your progress
Start free and your progress, code and notes stay saved. Free for 1 month, no card needed.
Start free Log in