Skip to content

Instantly share code, notes, and snippets.

View Fred-Reis's full-sized avatar
🏠
Working from home

FredReis Fred-Reis

🏠
Working from home
View GitHub Profile
@Fred-Reis
Fred-Reis / git-update-fork.sh
Created August 3, 2020 18:36 — 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
@Fred-Reis
Fred-Reis / .gitconfig
Last active April 6, 2022 00:06 — forked from diego3g/.gitconfig
[alias]
ci = "!f() { git commit -m \"$*\"; }; f"
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
import React from 'react';
import { render, fireEvent } from 'react-native-testing-library';
import Home from '../../pages/Home';
const mockedNavigation = jest.fn();
jest.mock('@react-navigation/native', () => {
return {
useNavigation: () => ({
just a gist test