Do you use git? Then this is for you...
7 ways in which you can add files to your commit using git add

I am a Front end developer currently working on React JS, HTML, CSS, Python, Vue JS, Webpack, Babel, AEM etc.
Search for a command to run...
7 ways in which you can add files to your commit using git add

I am a Front end developer currently working on React JS, HTML, CSS, Python, Vue JS, Webpack, Babel, AEM etc.
Are you planning to start your coding journey?. Then this is for you - a roadmap to help you achieve your goals.

As a website user, one would have come across links or buttons which say "Click to download" or "Download" on a website. Have you ever wondered how can you add one to your website?. Keep reading!!!. As part of this blog let us see how one can crea...

Display Hello World and custom message using two-way data binding

Build a random quote generator using an API - JavaScript

Kritika Pattalam Bharathkumar | Web Developer - The official blog of Kritika Pattalam Bharathkumar
22 posts
Front End Engineer | Writes about HTML, CSS, JavaScript and everything related to web development | Follow me on Twitter let's chat.
For anyone who uses git, git add is the most commonly used terminal command to add files. But have you ever wondered if you can add only newly created files or just a specific type of file? Well, you can, and what's more interesting is you can do more than that with git add.
Let's dive right in!!!
The below line can be used to select all files such as
newly created files
deleted files
modified files
git add .
Lets assume that you edited multiple files, but you want to add just a specific file to the commit, then use the below command
git add < path-to-file >
//eg: add just the CSS file from the specified path
git add apps/project-structure/styles.css
Using the below command one can choose a specific type of file, e.g: One can choose to add just HTML files, CSS files or JavaScript files, etc.
git add *.< file-extension >
//eg: add all files with extension scss
git add *.scss
Using the below command one can add all the files under a particular directory path
git add < directory >
//eg: add all files under the folder project-test
git add apps/project-test/
Using the below command one can add all the files which are generally ignored via gitignore
git add -f
or
git add --force
Using the below command one can add all the files i.e newly created files and modified files, but this command will ignore the deleted files
git add --ignore-removal
Using the below command one can add all the files i.e modified files and deleted files, but this command will ignore newly created files
git add -u
or
git add --update
Follow me on Twitter | LinkedIn for more web development related tips and posts. Feedbacks and suggestions are welcome.