![git commands mac cheat sheet git commands mac cheat sheet](https://media.cheatography.com/storage/thumb/jtanmay-dev_git-cheat-sheet.750.jpg)
Git log -n 1 | grep -q -c "\-\-wip\-\-" & git reset HEAD~1 Git push origin -all & git push origin -tagsĬd $(git rev-parse -show-toplevel || echo ".") Git svn dcommit & git push github master:svntrunk Git push -set-upstream origin $(current_branch) Git branch -set-upstream-to=origin/$(current_branch) Git push -force-with-lease origin /$(current_branch) Git pull -rebase origin $(current_branch) Git pull origin $(current_branch) & git push origin $(current_branch) Git diff-tree -no-commit-id -name-only -r Git describe -tags `git rev-list -tags -max-count=1` Git Dynamic access to current branch name with the current_branch function
![git commands mac cheat sheet git commands mac cheat sheet](http://wiki.visionquestdev.com/lib/exe/fetch.php?media=linux:git-cheat-sheet-large01.png)
Tab-completion For options and helpful text of what they do Print each alias in the form of calls to alias See ~/.oh-my-zsh/lib/directories.zsh Alias Example alias -s rb=vim #opens ruby files in vimĪlias -g gp='| grep -i' #creates a global alias for grep Get a list of the top 20 commands and how many times they have been run.
#Git commands mac cheat sheet archive#
Quick installation information is below here anyway: Using cURL sh -c "$(curl -fsSL )"Ĭreate a new tab in the current directory (macOS - requires enabling access for assistive devices under System Preferences).Ĭreate a new directory and change to it, will create intermediate directories as required.Įxtract an archive (supported types: tar., bz2, rar, gz, tar, tbz2, tgz, zip, Z, 7z). This article isn't about the installation, so please refer to its original website for detailed installation guidance.