Skip to content

Instantly share code, notes, and snippets.

View ranieribt's full-sized avatar
🎯
Focusing

Ranieri Teixeira ranieribt

🎯
Focusing
View GitHub Profile
@ranieribt
ranieribt / .gitignore_global
Last active September 29, 2017 13:50 — forked from octocat/.gitignore
Some common .gitignore configurations
#
# Global .gitignore Flle
# Reference: http://help.github.com/ignore-files/
# Save this in a file: ~/.gitignore_global
# Then at the command line (you will see more info if a repo is in the current folder):
# git config --global core.excludesfile ~/.gitignore_global
# git config --list
#
# Compiled source #
@ranieribt
ranieribt / git-merge-better_branch.txt
Created July 8, 2017 21:45
Make the current git branch a master branch
git checkout better_branch
git merge --strategy=ours master # keep the content of this branch, but record a merge
git checkout master
git merge better_branch # fast-forward master up to the merge