Skip to content

Instantly share code, notes, and snippets.

View renatoassis01's full-sized avatar
🏠
Working from home 🇧🇷

Renato Assis renatoassis01

🏠
Working from home 🇧🇷
View GitHub Profile
@renatoassis01
renatoassis01 / Update remote repo
Created June 8, 2020 19:07 — 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
@renatoassis01
renatoassis01 / git-update-fork.sh
Created July 31, 2019 03:00 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
@renatoassis01
renatoassis01 / slack_delete.py
Created March 26, 2018 13:28 — forked from Paradoxis/slack_delete.py
Delete all Slack files. Usage: python slack_delete.py --token <your token>
import argparse
import requests
import time
import json
def main():
"""
Entry point of the application
:return: void