Git: Commit - so you use the command
Git Commit is one of the most important commands you need when working with Git. Git is a version control that you can use to manage and archive multiple development statuses in a project. Read this practical tip to find out how to use the commit command correctly.
Git Commit: Suggest changes
You need the commit command in the daily Git workflow to be able to upload changes to the local repository.
- If you have made changes to the project locally, you need the add and commit commands before uploading the changes.
- First use "git add [file name]" to add the modified file to the so-called index.
- Instead of a file name, you can also specify directories in the Add command.
- Then you have to confirm the changes again. After the "git commit -m" commit message "" command, the files previously added to the index are in the HEAD.
- You can then use the push command to send the files to a remote repository.
You can read about how to use Markdown on Github in the next practical tip.