I have created and pasted a .gitignore file to my master branch, and I want to move it to the hometask_1 branch with the windows 10 command line.
I have used the commands below:
git checkout master
git checkout hometask_1 -- .gitignore
After the above commands I am getting the following error:
error: pathspec '.gitignore' did not match any file(s) known to git