2

I create a new new React native App and push to GitHub repository.
It shows my repository as Objective-C project.
How I can change this to JavaScript project? I Added .gitignore file to stop unwanted files to upload to Github. Thank you enter image description here

1
  • You shouldn't care about this, unless you want to use your github to show your skills. This is automatic and displays the most used language in your project. Commented Dec 19, 2018 at 13:14

2 Answers 2

2

You just need to add a .gitattributes file to your repo. In that file add these lines

special-vendored-path/* linguist-vendored
*.js javascript linguist-vendored=false
Sign up to request clarification or add additional context in comments.

Comments

1

Simplest thing was to create a file called .gitattributes in the root folder of repository, and give it these contents:

* linguist-vendored
*.js linguist-vendored=false

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.