VOOZH about

URL: https://dev.to/kahenda/how-i-managed-to-push-my-work-to-my-public-github-profile-from-my-gitea-profile-2784

⇱ HOW I MANAGED TO PUSH MY WORK TO MY PUBLIC GITHUB PROFILE FROM MY GITEA PROFILE - DEV Community


Hey Dev community
As a beginnner in the tech world and coding world everything has been kind of confusing but one of the problem i had that now i have already solved is how i can push work to my github profile
So i kind of got a hang of it after doing research on it and now all the projects that i have been doing i can easily link them to my public profile from my private gitea profile

The first project i pushed to my profile is called git kahenda/git
This project consists of exercises designed to master version control, file staging, and branching. It was the perfect sandbox for me to practice navigating the command line without breaking a massive codebase.

So using a few commmands in my terminal which helped me disconnect my project from the old server to a new server where my work can be at .

The exact commmand sequence i used :

Remove the old private Gitea connection

git remote remove origin

Add the new public GitHub connection

git remote add origin https://github.com

Push the code up to the main branch

git branch -M main
git push -u origin main

now you can easily check my live repository here : kahenda/git