# oh-my-git-aliases **Repository Path**: dengnarru/oh-my-git-aliases ## Basic Information - **Project Name**: oh-my-git-aliases - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-19 - **Last Updated**: 2021-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # oh-my-git-aliases My set of git aliases inspired by [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) git plugin. With these aliases you can improve the way you work with git, by using less keystrokes. Some of them also help to execute more complicated tasks with a single command. If you want to know more see my [blog post](http://mjk.space/git-aliases-i-cant-live-without/). ### Demo ![oh-my-git-aliases workflow](http://mjk.space/images/blog/git-aliases/workflow.gif) # 代理 ``` git config --global https.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080 git config --global --unset http.proxy git config --global --unset https.proxy #只对github.com git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 #取消代理 git config --global --unset http.https://github.com.proxy ``` # 回退 ``` git reset HEAD^ # 回退所有内容到上一个版本 ``` # pull操作 ``` shell # 1、将远程指定分支 拉取到 本地指定分支上: git pull origin <远程分支名>:<本地分支名> # 2、将远程指定分支 拉取到 本地当前分支上: git pull origin <远程分支名> ``` ### Installation 1. Download `oh-my-zsh-aliases.sh`, save to it to `~/.oh-my-zsh-aliases.sh`. 2. Add a reference to your shell's configuration file (e.g. `~/.zshrc`, `~/.bash_profile` o `~/.profile`): ``` source ~/.oh-my-zsh-aliases ``` 3. Restart your terminal. ### License This project is release under the MIT license.