git config --global user.name 0w0;
git config --global user.email 0w0@users.noreply.github.com;
git config --global color.ui true;
git config --global core.editor vim;
git config --global alias.co checkout;
git config --global alias.st status;
git config --global format.pretty format:"%C(auto)%h %d%Creset %s%n%Cgreen%ad%Creset %aN <%aE>%n";
# autosetup rebase so that pulls rebase by default
git config --global branch.autosetuprebase always
git reset
git reset --hard HEAD^
This command will pull and rebase keeping your merge action (not work every time due to the complicated commits)
git pull --rebase=preserve
git push origin :branchName
git clean -f
- specific dir
git update-index --assume-unchanged dir-im-removing/
- specific file
git update-index --assume-unchanged config/database.yml