Skip to main content
Menu
Home
Marco
Programmer/Developer

Main navigation

  • Drupal
  • Web Dev
  • App Dev
  • Web Servers
  • Projects
Home
Marco
Programmer/Developer

Main navigation

  • Drupal
  • Web Dev
  • App Dev
  • Web Servers
  • Projects

Change the URI (URL) for a remote Git repository

Submitted by marcom on Fri, 03/17/2023 - 09:54
A figurine of an oktokat in the center, in the background a laptop with the main page of the GitHub open.

You can access a Git repository using either SSH or HTTPS and can change to either one depending on your use case.

To check which repository your project is connected to, you can use the following command:

$ git remote -v

To change your project's repository, use the following command:

Tags
Git
Github
Web Development
  • Read more about Change the URI (URL) for a remote Git repository
  • Add new comment

Clone GitHub Repository with Different User

Submitted by marcom on Thu, 03/16/2023 - 16:47
Snowy mountains

To clone a GitHub repository with a different user:

  1. Open your terminal or command prompt and navigate to the directory where you want to clone the repository.

  2. If your GitHub username is "username", simply run:

    $ git clone https://username@github.com/example/repo.git

     

  3. Enter your GitHub password when prompted

Tags
Git
Github
Web Development
  • Read more about Clone GitHub Repository with Different User
  • Add new comment

How to Publish a PHP Library to packagist.org to be used in Composer

Submitted by marcom on Sun, 03/12/2023 - 16:29
Amazon packages

Publishing a PHP library to Packagist.org is a straightforward process that involves a few simple steps. An existing Github repository that is public is required (although private is also available) in order to submit to Packagist.

Tags
Web Development
Git
Github
Composer
Packagist
  • Read more about How to Publish a PHP Library to packagist.org to be used in Composer
  • Add new comment
Subscribe to Github

Recent content

  • Easy Drupal 7 upgrade using Git patch file
    1 day ago
  • Change the URI (URL) for a remote Git repository
    5 days 4 hours ago
  • Cyberimpact Mailout
    5 days 5 hours ago
  • Clone GitHub Repository with Different User
    5 days ago
  • How to Publish a PHP Library to packagist.org to be used in Composer
    1 week ago
  • Add Custom Tokens in Custom Module for Drupal 9
    1 week ago
  • How to check for SSH version on Ubuntu or Linux server
    1 week ago
  • Correctly Display Leaflet Map on Ionic React
    1 week 5 days ago
  • Fix 404 error not found in Ionic PWA build for Angular or React
    1 week 5 days ago
  • How to include .htaccess in Ionic PWA build
    1 week 5 days ago

Search

Google Adsense

Shop on Amazon

About Marco

Full stack developer and systems administrator experienced in working in software design, programming and development. Built award-winning websites, intranets, and mobile apps for a variety of clients, working at Upanup.

Footer menu

  • Drupal
  • Github
  • Facebook
  • LinkedIn
  • Contact

Powered by Drupal