cdinto the repo and add the following
add-json. Note that branch names are typically in kebab-case.
data.jsonfile to the repo.
index.jsto contain the following.
git pushneeds additional parameters
originand target branch name to push feature branches to GitHub because when we run
git pushwithout params, it pushes the
mainbranch by running
git push origin main.
originis the default Git Remote that references a remote repo, in this case our GitHub repo. We also need to specify a target branch name so Git knows which branch to push our changes to. By default we always use the local branch name as the target branch name.
add-jsonbranch to GitHub.
mainand make the following change to the
main(or any other branch) and any potential merge conflicts. This will not create a PR until we click another button.
main, we will now
pullthose changes to the original contributor's repo.
git pullin the original contributor's repo to get the latest changes from GitHub. Note we need to be in
mainto pull changes from
mainlocally is now the code in