Skip to main content
Menu
Home
Marco
Programmer/Developer

Main navigation

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

Main navigation

  • Drupal
  • Web Dev
  • App Dev
  • Servers
  • Projects
  • Products
  • Tools
  • Faith

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

  • How to Decrypt an RSA Private Key Using OpenSSL
    6 days ago
  • How to remove submodule from Git
    8 months ago
  • Sort all directories based on their size
    1 year ago
  • Find and Replace text in SQL files
    1 year ago
  • Copy files with rsync in Linux
    1 year ago
  • Search text recursively in log files
    1 year ago
  • Proxy Domain to Another Server
    1 year ago
  • Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in wp-includes/wp-db.php in WordPress in XAMPP environment
    1 year 4 months ago
  • How To Keep Passwords Safe
    1 year ago
  • How to Convert DER Encoded Certificates to PEM
    1 year ago

Search

Google Adsense

About Marco

Full stack developer and systems administrator experienced in working in software design, programming, web and app 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