Changing Upstream Branch from HTTPS to SSH for Existing App Branches
By Michael Appiah-Kubi on December 17, 2025
ExpertUpdate your app's remote configuration to enable passwordless Git operations via SSH.
- Identify App Path: Navigate to the specific app directory using
cd apps/[app_name]. - Check Current Remote: Run
git remote -vto confirm the existing HTTPS URL (e.g.,https://github.com/user/repo.git). - Update Remote URL: Execute
git remote set-url origin [ssh_url]using the SSH link copied from the GitHub repository. OR run this command: git remote add upstream [ssh_url] - Verify Change: Run
git remote -vagain to ensure the origin now displays the SSH format (e.g.,git@github.com:user/repo.git). AND run: git remote add origin [ssh_url] - Test Connectivity: Perform a
git fetch OR git pullto confirm the server successfully authenticates using your SSH key.
Was this article helpful?
More articles on Erpnext