Welcome You all for the contribution. Make Valid Changes in this project .
Double click on game.html
to open the game in the browser.
Add the remote, call it "upstream" :
git remote add upstream https://github.com/ayushi-ras/JS-Game
Fetch all the branches of that remote into remote-tracking branches, such as upstream/main:
git fetch upstream
Make sure that you're on your main branch:
git checkout main
Rewrite your main branch so that any commits of yours that aren't already in upstream/main are replayed on top of that other branch:
git rebase upstream/main
An easy way to avoid conflicts is to add an 'upstream' for your git repo, as other PR's may be merged while you're working on your branch/fork.
git remote add upstream https://github.com/ayushi-ras/JS-Game
You can verify that the new remote has been added by typing
git remote -v
To pull any new changes from your parent repo simply run
git merge upstream/master
This will give you any eventual conflicts and allow you to easily solve them in your repo. It's a good idea to use it frequently in between your own commits to make sure that your repo is up to date with its parent.
For more information on syncing forks read this article from Github.