This is meant to be a quick revision of very basic Git commands for me. I am not yet a fully functional software developer at the moment. I do not use a lot of Git. But then i do rarely, once a year maybe for some small project?, and, this can be good starter for me.
git initto initialize a repository in a folder.
git statusto know the status of what is staged, what is modified and such.
git add filenamesto stage those files.
git commit -m "Commit Message"to commit staged files with a commit message.
- List files that need to be excluded when staging whole folders maybe, in
.git/info/exclude. Can be used for temporary files and media files maybe.
git rm --cached filenameto remove a file from being monitored by git.
That should get you started dear future me! 🙂