git replace local branch with remote
git reset --hard origin/master
git replace local branch with remote
git reset --hard origin/master
git checkout branch from remote to local
git checkout -b test origin/test
// making a local copy of the branch called "test" from origin.
switch to remote branch git
# creates a branch called some_branch
# switches to this newly created branch
# pulls changes from the origin remote branch
git checkout -b some_branch origin/some_branch
git replace local branch with remote
git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name
git branch change remote
git branch branch_name -u your_new_remote/branch_name
git get remote branch
git fetch
git checkout test
javascript get current url
var currentUrl = window.location.href;
how to get browser url in javascript
function getURL() {
alert("The URL of this page is: " + window.location.href);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us