does git add only apply to current branch code example
Example 1: git add all files command
/*to add all the files in staging area at once*/
git add .
Example 2: git add .
git add <file> or you can do git add -A to add all files
/*to add all the files in staging area at once*/
git add .
git add <file> or you can do git add -A to add all files