The aim of this blog is to introduce you to Five Tip and Tricks that will level up how you use Git and GitHub in your daily dev life.
Amend a commit message
Made a mistake to the commit message?
You can simply amend it rather than resetting.
Save changes for later
stash command if you have changes you are not ready to commit yet.
It simply removes your changes from your current working directory and saves them for later use without committing it to your repository.
Forgot the last branch name?
If you forgot the last branch name you were working on, then don't worry this command will take you back to the last branch you were working on.
Who is the author?
Working on a code and have questions? Have a hard time understanding its author?
Use this command to know the author and the timestamp.
Count your commits
Want to know how many commits you've made so far in the project?
Use this command
This blog is inspired by one of our Twitter threads that we post on our Twitter account. There are many threads like this; you should check them out.
Top comments (2)
Very straightforward and easy to follow. Thanks for sharing!