❔ Github Help

im trying to upload my code to github but it seems like i was in a different repo and i didnt notice, i want to add the current code to the repo and push so all the code i have goes to that reposotory
5 Replies
Protagonist
ProtagonistOP2y ago
anyone?
phaseshift
phaseshift2y ago
add the remote, then push to it
WhiteBlackGoose
what phaseshift said so basically you want to push to another repo that is, you want to add another remote repo to your local git repo and push to it you need to do
git remote add new-remote {url}
git remote add new-remote {url}
replace {url} with the url of your new repo then git push new-remote
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server