not logged in | [Login]

Git help



  • bash-git-prompt - An informative and fancy bash prompt for Git users
  • diff-so-fancy - Produces a really nice git diff
  • Meld Merge - Meld is a visual diff and merge tool targeted at developers

My trouble shooting examples:

Git Nuke

Obliterate all local changes, reset back to HEAD

See git-nuke

My Git config

	email = ...
	name = ...
        autosetuprebase = always
        ui = auto
        branch = auto
        interactive = auto
        status = auto
        lol = log --graph --decorate --pretty=oneline --abbrev-commit
        lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
        lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
        dag = log --graph --format='format:%C(yellow)%h%C(reset) %C(blue)\"%an\" <%ae>%C(reset) %C(magenta)%cr%C(reset)%C(auto)%d%C(reset)%n%s' --date-order
        stats = shortlog -sne
        outgoing = log @{u}.. --name-status # See outgoing changes using git log
        outdiff = log @{u}.. -p             # Diffs the outgoing changes with upstream
        outdifftool = difftool @{u}         # See outgoing changes using difftool.
        pager = diff-so-fancy | less --tabs=4 -RFX
        excludesfile = /home/MYNAME/.config/git/excludes
        editor = vim
        default = upstream # Push only the commit(s) in branch1 to remote (other branches tracking remote not pushed)