How to commit Specific files in Git
In this post we will give you information about How to commit Specific files in Git. Hear we will give you detail about How to commit Specific files in GitAnd how to use it also give you demo for it if it is necessary.
we are going to learn about how to commit specific files in git instead of committing all files.
Committing specific files
Change your current working directory to the git repository.
Now, add the files you need to commit by running the git add command followed by your file names.
git add my-file1.js my-file2.js
- Run the git commit command to commit your specified files in step 2.
git commit -m 'added my-file1.js & my-file2.js'
Hope this code and post will helped you for implement How to commit Specific files in Git. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs