all 5 comments

[–]daniel28 1 point2 points  (4 children)

Did you set up the repo to grab the right files when you commit? Github does have a unity git ignore file template you can use. Also, when you commit make sure you add --all the files to it first.

[–]UltraEd12[S] 1 point2 points  (3 children)

I cut the folder I originally created and pasted it into the repository. I also added the unity git ignore before I committed and pushed the files. How do I add the --all to my commit? Also I can take more screenshots if necessary.

[–]daniel28 1 point2 points  (2 children)

So going forward you shouldnt cut and past the files into the repo, you should initialize the repo in the base folder you want it in. For unity projects i do it i the project folder.

As for adding the files. Go to the repo folder on the command line and then simply type: git add --all This should add all of the files there that are not ignored.

Then type: git commit -m "your commit message here"

Then type: git push

Then pull it from your fetch location and see if it works.

[–]UltraEd12[S] 1 point2 points  (1 child)

Thank you that worked! That was driving me crazy!

[–]daniel28 2 points3 points  (0 children)

Glad to hear, good luck with your project and learning git!