Skip to content

Instantly share code, notes, and snippets.

View leobaiano's full-sized avatar

Leo Baiano leobaiano

  • UX Agency
  • São Paulo, SP - Brasil
View GitHub Profile
@chrisenytc
chrisenytc / .gitconfig
Last active August 29, 2015 13:56
My Git config
[user]
name = Christopher EnyTC
email = chris.enytc@gmail.com
[color]
ui = true
[alias]
a = add .
c = clone
cm = commit -m
p = push origin master
@hugooliveirad
hugooliveirad / git-aliases.sh
Last active February 25, 2019 14:15
Git Aliases
# Mais usados --
alias ga="git add"
alias gc="git commit -m"
alias gca="git commit -am"
alias gs="git status"
alias gp="git push"
alias gpl="git pull"
# Diff --
alias gd="git diff"
@hugooliveirad
hugooliveirad / git-sync-fork.sh
Created February 21, 2014 21:33
Sync Fork On GitHub
# Sync fork with original repository
#
# Requires an "upstream" remote, pointing to original repo
# e.g. `git remote add upstream git@github.com:user/repo.git`
alias git-sync-fork="git fetch upstream; git checkout master; git merge upstream/master"
@hugooliveirad
hugooliveirad / git-ahead-behind.sh
Last active August 29, 2015 13:55
Git ahead and behind info
# add this function to your .bash_profile to be able to use it everywhere
# usage: git-ahead-behind [local-branch] [remote-branch]
function git-ahead-behind() {
branch="`git symbolic-ref --short -q HEAD`";
loc="${1-$branch}";
remote="${2-origin/$loc}";
git fetch $remote &> /dev/null
wait
@kasparsd
kasparsd / wordpress-plugin-svn-to-git.md
Last active April 17, 2024 12:35
Using Git with Subversion Mirroring for WordPress Plugin Development
@claudiosanches
claudiosanches / bomfinder.php
Last active November 24, 2015 18:20
UTF8 BOM finder
<?php
// Tell me the root folder path.
// You can also try this one
// $home = $_SERVER['DOCUMENT_ROOT'];
// Or this
// dirname( __FILE__ )
$home = dirname( __FILE__ );
// Is this a Windows host ? If it is, change this line to $windows = true;
$windows = false;