An overview of git (the version control system) from my perspective and experience.
git for version control.
To rename a branch, while on the current branch, run the following in the terminal (replacing
newBranchName with the branch name you want the current branch to be called):
git branch -m newBranchName
Sometimes I find myself committing a small chunk of code that isn't quite right. I'll either refactor it or fix it, but I don't want to create a new "fix" commit.
When the commit was the most recent commit I made and I haven't pushed yet, I'll do a soft reset:
git reset --soft HEAD^
A soft reset removes the most recent commit and the files that were in that commit are staged. You can then add your fix and recommit with the same message.
Hey, I'm Chase. I help aspiring entrepreneurs and makers turn their ideas into digital products and apps.
A figma community project of vectorized hand-drawn arrows.Go To Figma
A figma community project of vectorized hand-drawn lines.Go To Figma
A figma community project of vectorized hand-drawn shapes.Go To Figma
Subscribe to my Newsletter
Every other week I publish the Curiously Crafted newsletter.
In it, I explore the intersection of curiosity and craft: the people who make stuff, what they make and the way they pursue the craft of making.
I'm on almost all social media as @curiouslychase.