To commit specific files from a subdirectory in Git, use git add with the file paths, then git commit to create a new commit.
Ever had a problem, when you add a new file or make changes to an existing one but it just doesn't show up in git status? We got a solution for you.
If you have a Windows setup, you must have faced the annoying issue of file name case change. Where you changed the file name capitalization, but it just doesn't show up.
Forgot to add some files or changes in your last commit? Or remember that last thing you needed to do after you have already committed? We have a solution!
Let's say you were working on an update but needed to push some partial code. To do it, you can quickly call the interactive add feature of git and select the portion of code you want.
So imagine that you blindly committed some changes with `git commit -a`, and you are not satisfied with the particular content of the commit you just created.
Git branches are an essential part of your daily development process, but once you or your team have finished with a feature and merged it into your remote’s main branch, you would want to delete that branch from your local repo and your remote.
I would recommend all developers to set up this globally; you will love it and won't even remember it.
Usually, it is recommended to create a new fix branch from your master and push it back, but sometimes we kind of go lazzy. In those moments, I simply make the changes and add them one by one using the following command.
Ever been in a situation where you need to collaborate with someone, but you don't have that branch on our local repo? How do we get that, as doing a checkout will not work?