Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git create new remote oupstream

# 1) Clone the repo
git clone <repo>

# 2) Set a new remote. The original is called origin, we shall call it "upstream"
git remote add upstream https://github.com/<...>.git

# 3) Fetch it
git fetch upstream

# 4) Create a new branch:
git checkout -b MyBranch

# 5) Follow new remote, the main branch (for git version > 1.8
git branch -u upstream/main

# Note: to push:
git push upstream HEAD
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell reload updated module 
Shell :: ufw enable no disturb 
Shell :: Exception: No Linux desktop project configured. 
Shell :: how to create a github repo on linux command line 
Shell :: ng table angular 9 install 
Shell :: npm list commands 
Shell :: wp unpublish post cli 
Shell :: Scryptenconder install 
Shell :: udev rule adb 
Shell :: Error: path "" is not a descendant of mount point root "" and cannot be exposed from 
Shell :: create eth1 interface in ubuntu without any physical interface 
Shell :: hdfs download folder 
Shell :: aos animation vue 
Shell :: conda install cffi 
Shell :: get number input batch 
Shell :: dmesg watch command linxu 
Shell :: github save init repository to remote 
Shell :: Command to Change Users in a Linux 
Shell :: platformio lib remove 
Shell :: brownie list networks 
Shell :: delete all empty files and folders in terminal 
Shell :: sort files in directory by size 
Shell :: upgrade all content database sharepoint 2013 powershell 
Shell :: fish add to path 
Shell :: linux ssh 
Shell :: aws codedeploy logs 
Shell :: grafana for linux download ubuntu 
Shell :: installing metabase using docker 
Shell :: powershell computer information 
Shell :: how to push to github with personal access token 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =