Horje
replace main with another branch Code Example
replace main with another branch
# Rename master to old-master, staging to master
$ (staging) git checkout master
$ (master) git branch -m old-master
$ (old-master) git checkout staging
$ (staging) git branch -m master

# Force push staging (now master) into remote master
$ (master) git push origin master -f

# Change branch names back to original
$ (master) git branch -m staging
$ (staging) git checkout old-master
$ (old-master) git branch -m master

# Sync local master with remote master
$ (master) git fetch --all
$ (master) git reset --hard origin/master




Shell

Related
how to kill a service based on port number on mac Code Example how to kill a service based on port number on mac Code Example
uninstall appx Code Example uninstall appx Code Example
powershell password encryption in script Code Example powershell password encryption in script Code Example
how to deploy to netlify using git bash Code Example how to deploy to netlify using git bash Code Example
make only one digit input box Code Example make only one digit input box Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11