Next, create a new folder in your pc wherever you prefer: this is to clone the copy of your GitHub repository to your PC.
Then right-click the background and click ?Git Bash Here? as follows.
?
Go to inside the cloned repository. (If you want to upload the file to another folder already created inside the repository, then go to that folder)
?
Right-click the background and again click ?Git Bash Here?.
?
Run the following command
$ git lfs track ?.fileextension?
Eg: If I want to upload a pdf file, then
? ? $ git lfs track ?.pdf?
?
Then copy the file you want to upload, into repository or folder in the repository.
?
Then run the command,
?
?$ git add filename.fileextension
Eg:- $ git add TheGuid.pdf
?
We should log into GitHub to push the file to the repository, run the following commands.
?
?$ git config --global user.email ?[email protected]?
Eg:- $ git config --global user.email ?[email protected]?
?
Now run the following command.
?
?$ git commit -m "commit message"
Eg:- $ git commit -m ?add TheGuid.pdf?
?
$ git push origin master
This command will start the uploading the file.
?
You will notice the progress of the uploading in the bash terminal as follows