logo
episode-header-image
About this episode

In this episode of Syntax, Scott and Wes talk about Git fundamentals — what it is, why you need it, best practices, and more!

Sentry - Sponsor

If you want to know what’s happening with your errors, track them with Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting Sentry.io and using the coupon code “tastytreat”.

Freshbooks - Sponsor

Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section.

Show Notes

03:12 - What is Git?

04:16 - Why do you need it?

06:31 - UI vs command line

09:03 - Commands 101

  • https://git-scm.com/
  • init
    • .gitignore file is key right off the bat
  • add
    • add -p - quick review of all the changes you’ve made
  • commit
    • Multiple adds and commits
    • Commit messages should be descriptive
  • push
    • What are origins?
  • pull
  • clone
  • checkout
  • merge
  • fetch
  • stash
  • fork
  • Merge vs pull request
  • Git vs GitHub / Alternatives
    • Bitbucket
    • GitLab

44:25 - Common issues

  • Merge conflicts
  • Files being tracked unintentionally
  • “How do I delete file from GitHub?”
    • git rm -r
    • alias gri="git ls-files --ignored --exclude-standard | xargs -0 git rm -r"
  • Databases in Git?

49:10 - Git clients

Links

××× SIIIIICK ××× PIIIICKS ×××

Shameless Plugs

Tweet us your tasty treats!

Up next
Yesterday
918: Extreme Native Perf on the Web with Superhuman
Wes and Scott talk with Loïc Houssier about how Superhuman builds lightning-fast, delightfully-designed email software. They dig into engineering philosophy, offline-first architecture, local databases, AI-powered productivity, and what it takes to create tools that people love. ... Show More
48m 54s
Jul 7
917: AI Tools You Should Know
Scott and Wes round up the hottest AI tools you should have on your radar; from text-to-speech wizards to self-hosted image generators. They break down what they’re using, what’s worth paying for, and which tools are changing their workflows. Show Notes 00:00 Welcome to Syntax! 0 ... Show More
37m 48s
Jul 2
916: I got fired, what should I focus on?
In this potluck episode of Syntax, Wes and Scott answer your questions about maintaining popular open-source projects, where to start after a layoff, impostor syndrome, Scott’s recording setup, whether a computer science degree is still worth it in the age of AI, and more! Show N ... Show More
58m 24s
Recommended Episodes
Apr 2024
The GitLab way: Kindness, transparency, and short toes | David DeSanto (CPO)
David DeSanto is the chief product officer of GitLab, which is the largest remote-only company in the world. They share many of their team meetings on YouTube, and they’ve grown from being an open-source code management product competing with GitHub to a multi-product platform th ... Show More
1h 21m
Mar 2020
GitHub Actions and the DevOps Lifecycle
Chris Patterson (@chrisrpatterson, Product Manager for GitHub Actions @GitHub) talks about the evolution of GitHub from a collaboration-centric platform to a DevOps-centric platform, as well as discussing the expanding role of GitHub Actions for developers, DevOps and SREs. SHOW: ... Show More
28m 13s
Aug 2016
State of Go Survey and Go at Heroku (Go Time #10)
Ed Muller from Heroku join us to discuss his State of Go survey, vendoring and versioning, the Heroku Go Buildpack, how they use Go at Heroku, and more. Discuss on Changelog News Changelog++ members support our work, get closer to the metal, and make the ads disappear. Join today ... Show More
1 h
Apr 2012
Source Control and The Cloud: How did CodePlex start supporting Git?
Scott sits down with infrastructure engineer Matt Hawley to find out how the CodePlex team implemented the Git distributed source control system. CodePlex now supports TFS, Mercurial and Git as choices for source. 
33m 3s
Jun 2016
GitHub and Google on Public Datasets & Google BigQuery
Arfon Smith from GitHub, and Felipe Hoffa & Will Curran from Google joined the show to talk about BigQuery — the big picture behind Google Cloud’s push to host public datasets, the collaboration between the two companies to expand GitHub’s public dataset, adding query capabilitie ... Show More
1h 24m
Jun 2023
Episode 361: Get git and non-tech ramping up
In this episode, Dave and Jamison answer these questions: Listener Schtolteheim Reinbach III asks, Hey soft skills engineering, love you guys. I work at a company you wouldn’t hear much about, on a product that you wouldn’t think about as having much tech involved- suffice it to ... Show More
28m 5s
Jan 2024
Episode 54: White Box Formulas - Vulnerable Coding Patterns
Episode 54: In this episode of Critical Thinking - Bug Bounty Podcast Justin and Joel are back with news items and new projects. Joel shares about his personal scraping project to gather data on bug bounty programs and distribution Next, they announce the launch of HackerNotes, a ... Show More
1h 12m
Dec 2022
Big news in Deno Land
Deno creator Ryan Dahl goes one-on-one with Jerod to discuss their new npm support, why he’s so excited about JavaScript containers, Deno Deploy’s present & future, what he thinks about alternative runtimes like Bun, WinterCG, how Wasm fits into the story & more! Discuss on Chang ... Show More
54m 38s
May 2018
New Go branding strategy (Go Time #79)
Steve Francia joined the show and told us EVERYTHING about Go’s new branding strategy (and don’t worry, the gopher isn’t going anywhere!) Discuss on Changelog News Changelog++ members support our work, get closer to the metal, and make the ads disappear. Join today! Sponsors Data ... Show More
1h 12m