Iam trying to add file in all branches of git :
cd <git url>
for remote in $(git branch); do
git checkout --track $remote
cp -r /path/of/file . #copy file from local to current directory
git add .
git commit -a -m "file added"
git push origin -u $remote
done
how to implement this?