Git Commands: A Practical Guide for Everyday Use
Get comfortable with the Git commands you use most: check changes with git status, stage work with git add, and review history with git log. Clear examples help you build a steady daily workflow.

Contents
Git Commands and How to Use Git Commands

We can now get started with Git Commands and How to Use Git Commands. But before we start with Git commands, it’s worth reviewing our earlier lessons on installing Git on Windows. If you haven’t read them, I recommend checking out our lesson What Is Git, What Is It Used For, and Git Usage. Of course, learning Git commands from the GitHub documentation will be even better. You can reach the GitHub documentation by clicking here.
Git Status
We can use the command below to check situations such as whether your files have been added to the project or updated.
git status
Git Add
If you want to add a new file or folder to your project, the command below is used. When using the git add command
git add
However, if it’s a single file you’re adding, you should use the Git command as shown below.
git add dosya.txt
If you’re adding several files, you can add multiple files by writing their file names with their extensions side by side. I can also say that using it this way is very helpful for me during development.
git add dosya.txt dosya1.txt dosya2.tx
If you’re adding a folder/directory and that folder is the current directory, you can use the Git command as shown below.
git add .
Git Log
If you want to see the version history in the Git repository you’ve been working on, you need to use the Git command below. It’s worth using this command more often so you get into the habit.
git log
Believe me, learning and understanding these few commands will be a lifesaver when you’re developing real projects. Of course, the commands above won’t be enough yet for you to say “I can use Git.” Also, with a little practice, you’ll have a lot of knowledge about using Git commands in just 1 or 2 days.
Share it if it helped

