Custom Text

You can call me Arrow or aroceu, whatever your heart desires. I write stories and code, I make graphics and designs, I talk about myself a lot, and I prefer lists in threes but break that preference quite often.
ceu: (luke)
[personal profile] ceu
Note: Replace all RED CAPITALIZED TEXT with your/your repository's information.

If using Github Desktop:

  1. In repository (header) > Repository > Repository Settings
  2. Remote > Primary Remote Repository (origin) URL
  3. Make sure that repository URL is HTTPS://

cPanel Version Control:

  1. Navigate to your website's cPanel
  2. Open Terminal in cPanel
  3. Enter these commands in the following order (ENTER after each):
    1. ssh-keygen -t rsa -f ~/.ssh/KEYFILENAME -b 4096 -C "USERNAME@ROOT.DOMAIN"
    • KEYFILENAME can be anything. I advise making it similar if not identical to your repository name.
  4. touch ~/.ssh/config
  5. chmod 0600 ~/.ssh/config
  6. chown USERNAME:USERNAME ~/.ssh/config
  • Navigate to SSH Access > Manage SSH Keys
    1. REPOSITORY Key > Manage > Authorize
    2. REPOSITORY Key > View/Download > Copy key
  • Navigate to your Github > Repository > Settings
    1. Deploy Keys > Add deploy key
    2. Title: [anything]
    3. Key: [paste from earlier ("copy key")]
      • Allow write access
  • Navigate to your website's cPanel > File Manager
    1. Navigate to .ssh (folder) > config (file)
    2. Add to file:
                              Host REPOSITORY.github.com
         			User git
      			Hostname github.com
      			IdentityFile ~/.ssh/KEYFILENAME
          			IdentitiesOnly yes
    3. Save and close
  • Navigate back to cPanel Terminal
    • Test if the repository works with ssh -Tv git@REPOSITORY.github.com
    • If it outputs by saying Hi REPOSITORY/USERNAME then it's successful. Don't worry about additional messages.
  • Navigate to GitVersion Control
    1. Create the repository
    2. For the repository URL, make sure the format is: ssh://REPOSITORY.github.com/USERNAME/REPOSITORY

    Then you're done! All updates pulled from Github Version Control in cPanel should now work with your private repository :)