GitHub Workflow: Enterprise to Personal
To fork and clone an Enterprise repository and push to your personal GitHub:
Fork the Enterprise repository.
Click the green "Code" button and copy the URL.
Clone the repo to your local machine
git clone https://git.generalassemb.ly/<Enterprise username>/<repository name>.gitRemove the
.gitfolder:rm -rf .gitReplace the
.gitfolder:git initGo to your personal GitHub account.
Click green "New" repository button, or click on your avatar and select "Your repositories" and click green "New" repository button.
Select owner (if necessary) and copy/paste the repo title.
Click green "Create Repository" button.
Copy and paste the first two commands from the second option "…or push an existing repository from the command line":
git remote add origin git@github.com:<personal GitHub username>/<personal remote repository name>.git git branch -M mainCreating a new local repository will mean you have unsaved changes. You can check your status:
git status, and then save your changes:git add -AYou can check that your changes have been saved:
git statusNow you can push up to your remote repository:
git push -u origin main
Last updated