Skip to content

thisjunewest/git-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Personal git aliases

Installation

Add these to your ~/.gitconfig file.

Explanation

  • git pushup [<branch>] - Pushes the current branch or a specified branch, setting the upstream to the same name
  • git pullup [<branch>] - Pulls the current branch or a specified branch, regardless of whether it is checked out or not
  • git trim [-f|--force] - Performs a git fetch --prune and then removes any local merged branches that were deleted remotely. If --force is passed, also removes unmerged branches
  • git lost - A log of unreachable commits which can no longer be found in any branch or tag. Only shows "dangling" commits (commits with no descendants). You can use any options of git log
  • git move <ref>|--remote [-f|--force] - Moves a branch to ref (commit, branch or tag) or to match its remote. Will refuse to move a branch if it makes commits unreachable unless --force is passed.
  • git summon <branch> [-f|--force] - Moves a branch to the current commit and checks it out. Will refuse to summon a branch if it makes commits unreachable unless --force is passed.
  • git uncommit - Undo the last commit, leaving the changes staged
  • git destash <name> - Like stash pop, but applies & removes a stash by name
  • git agree - Tells you if the file tree in your current branch matches origin ( useful for rebases)

About

Collection of neat git aliases

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors