Classic Blunder - not committing my code

Classic Blunder - not committing my code


In this article, I'm doing something I should have done at the end of the last one.

Dave, you fool! You fell victim to one of the classic blunders - the most famous of which is "never get involved in a land war in Asia" - but only slightly less well-known is this: "Never stop coding for the day until you've checked in your changes"! -- slightly altered quote from Princess Bride

Ok, ok. Thankfully I didn't lose anything this time. I may not always be so lucky. There's so many ways to do this (use git) like using VSCode or some dedicated tool (eg. Sublime Merge). But this time, I'm just gonna use the command line. I know, crazy. I learned Git relatively late, just 5+ years ago, and I learned using the command line. (Git Cheat Sheet) I'll continue the narrative in the green comments on the screenshots below.

But first, I've got to activate the virtual environment....


Article content
Activate the virtual environment, check the git status, and stage all the files


Article content
Check the status again


Article content
Commit the files and push the change to the remote repo

In the next article, I'll start adding to this very blank application.


Peace be the Documented Journey!

-- Peace out!



To view or add a comment, sign in

More articles by Dave Richards

  • Lookin' at the Big Picture

    Charting out the future of the app Photo by Jay Wennington on Unsplash Stepping Back Ok. Let's step back a minute.

  • REACT! -- good boy... NEXT!

    Getting started with React and Next.js -- and some bits about Hue Photo by Robert Larsson on Unsplash A few tidy-ups…

    2 Comments
  • You're my new best friend -- btw, who are you?

    Adding JWT Authentication Photo by Joe Caione on Unsplash Identity Project I've decided not to try to integrate some…

  • Show me the Data!

    Setting up ASP.NET Core Minimal API Photo by Kieran White on Unsplash In this article, I am going to add the GET, POST,…

  • It's all about the data, baby.

    Using Entity Framework Core. Photo by Alvan Nee on Unsplash Assumption: Visual Studio and SQL Server are installed I am…

  • Tasks for me and Tasks for you

    An impetus for a new web application -- alleviating my son's confusion. Photo by Ryan Walton on Unsplash I am finally…

  • A Funny Thing Happened on the Way to the API

    So I created a totally blank Python/Django application where there is an app named "backend" with nothing in it -- and…

  • Brand Spankin’ New Project

    In this article, I'm creating a #GitHub repository, starting a #Python virtual environment, installing #Django, and…

  • On The Road, Again

    Sept. 23, 2024 "Document the Journey" -- David Roberts As an on-again-off-again listener/reader of David Roberts of…

Insights from the community

Others also viewed

Explore topics