Skip to content

Instantly share code, notes, and snippets.

View jaspotsangbam's full-sized avatar
🎯
Focusing

Jas jaspotsangbam

🎯
Focusing
View GitHub Profile
@jaspotsangbam
jaspotsangbam / Update remote repo
Created April 27, 2022 16:17 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@jaspotsangbam
jaspotsangbam / Update-branch.md
Created April 2, 2022 11:50 — forked from whoisryosuke/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

@jaspotsangbam
jaspotsangbam / azure-pipelines.yml
Created September 15, 2021 17:40 — forked from andrewmatveychuk/azure-pipelines.yml
Sample YAML pipeline to deploy linked ARM templates from a private repository
# Pipeline to validate and deploy ARM templates
trigger:
branches:
include:
- master
paths:
exclude:
- README.md