![]() ![]() ![]() In the next section, we are going to look into better ways to do this through VS Code extensions. So, it will be very difficult to check the different authors in each file through the command line. The above project is a large React.js project with many files. We can also see that almost all changes were done by a user called ankit, but the change on line 16 was made by user nabendu82. Here, the author of each line is mentioned. Notice that we have to give the complete path and also the filename. If you have the auto stage enabled you would need to manually rename all files with a separate git command.In the below example, we are using git blame to find the changes done in a file. ![]() So if you rename a file the history get broken. If you did not try this before let me show you what happens when you rename a file in a git repository You can also select multiple files with shift+click and then click stage on one of the selected files. In VS Code you can stage files one by one with the little plus sign:Īll files with the plus on the header line: And without staging changes you can not commit. This enables you to select which changes you want to commit when you have multiple files edited. But I just recently leaned this setting comes at a cost.īut what is even a stage? In my own words explained: You need to tell git which changes you want to commit. It seems like this can really save some time and work. You might know this little message, although you might have already forgotten that you got asked, when you fist started working with VS Code. Thanks to and who opened my eyes on this one □ But I thought this would be worth sharing □ After a longer break with blogging, I am now back with a really short one. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |