Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

set remote url git

$ git remote add origin https://github.com/user/repo.git
# Set a new remote

$ git remote -v
# Verify new remote
> origin  https://github.com/user/repo.git (fetch)
> origin  https://github.com/user/repo.git (push)
Comment

git set url with user name and password

git remote set-url origin https://username:password@github.com/group/project.git
Comment

git remote set-url username password

# add remote URL with out user name or password
git remote add origin https://gitlab.example.com/group1/project1.git

# if not able to change origin url use the below
git remote set-url origin https://gitlab.example.com/group1/project1.git

# it will prompt for credentials on first login and should not afterwards.
# store option stores credentials same in plain text in ~/.git-credentials
git config credential.helper store
# list all the settings
git config --list
Comment

PREVIOUS NEXT
Code Example
Shell :: stylelint run 
Shell :: set different user for git 
Shell :: brave disable gpu linux 
Shell :: install mongo db ubuntu 
Shell :: bash print environment variables 
Shell :: open android studio project from terminal 
Shell :: input bash 
Shell :: git delete remote branch error: unable to delete remote ref does not exist 
Shell :: ubuntu video player 
Shell :: show applications shortcut ubuntu move right 
Shell :: cmd kill process 
Shell :: linux find files by name 
Shell :: running ports in mac 
Shell :: openssh server ubuntu 
Shell :: composer drupal install 
Shell :: xcode path mac 
Shell :: ping command not found 
Shell :: kubectl install ubuntu 20.04 
Shell :: how to install onlyoffice on linux 
Shell :: how to push code to gitlab 
Shell :: how to exit from vi 
Shell :: nx run storybook 
Shell :: journalctl tial 
Shell :: download video cart driver for manjaro 
Shell :: install libdnet 
Shell :: Check all memory details 
Shell :: heroku delete app 
Shell :: bash fully unsquash sqfs file 
Shell :: remove local changes git 
Shell :: bash get length of every nth row 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =