I have a local and a remote repository and the local repository points to the remote repository.
When I created the remote repository, I placed a .gitignore file in it. Then, I created the local repository. It didn't have that file. Instead, the local repository had other files.
I have a question about:
git pull origin master --allow-unrelated-histories
When I ran the above command, the file .gitignore was downloaded into my local repository, but what else the above command does?
These are all the commands I ran from the Windows command prompt (I am on the Windows operating system) while being at the directory of the local repository in order to create the local repository, point it to the remote repository and upload the local files to the remote repository (one of these commands is the command that I need to understand, git pull origin master --allow-unrelated-histories):
git init
git add .
git commit -m "Initial commit"
git remote add origin https://...git
git pull origin master --allow-unrelated-histories
git push origin master