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>.git
Remove the
.git
folder:rm -rf .git
Replace the
.git
folder:git init
Go 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":
Creating a new local repository will mean you have unsaved changes. You can check your status:
git status
, and then save your changes:git add -A
You can check that your changes have been saved:
git status
Now you can push up to your remote repository:
git push -u origin main
Last updated