Missing feature? ๐ด Fork this repo and make it better!
Tell Git who you are using these commands:
git config -f ~/.gitlocal user.email "[email protected]"
git config -f ~/.gitlocal user.name "Name Lastname"
Note: You may put your custom settings into
~/.zshlocal
.
I suggest you to organize project folder as follows:
~/Projects
โโโ Forks # for GitHub fork
โโโ Job # for job projects
โโโ Playground # for short-term experiments
โโโ Repos # for long-term projects
Aliases are gonna make your work fast and enjoyable. See code in $DOTFILES/lib/aliases.zsh
. Here is what's included:
- Aliases from Oh-My-Zsh. See Oh-My-Zsh Cheatsheet for more.
- Easier navigation
..
โcd ..
...
โcd ../..
....
โcd ../../..
.....
โcd ../../../..
~
โcd ~
-
โcd -
- Folders shortcuts
dl
โcd ~/Downloads
dt
โcd ~/Desktop
pj
โcd ~/Projects
pjr
โcd ~/Projects/_Repos
pjf
โcd ~/Projects/_Forks
pl
โcd ~/Projects/_Playground/
- Commands Shortcuts
e
โ$EDITOR
+x
โchmod +x
x+
โchmod +x
ll
โls -alF
la
โls -A
l
โls -CF
- Open
open <FILE>
โ open file from terminal.o <FILE>
โ open file from terminal.oo
โ open current folder.
- Misc
update
โ get updates (Runs$DOTFILES/scripts/update.zsh
).dotfiles
โ jump quickly into dotfiles folder.myip
โ my local IP address.password
โ generate random password, copies it into clipboard and outputs it to terminal.path
โ print $PATH in readable view.getpage
โ download web page with all assets.get
โ download file with original filename.
Dotfiles also include some functions that will make your life easier. See code in bin/
.
emptytrash
โ empty the Trash on all mounted volumes and the main HDD.git-cleanup
โ removes old Git branches and does other cleanup.git-fork
โ add remote upsteam.git-upstream
โ sync branch with upstream.gz
โ get gzipped file sizen
โ runs given command using binary innode_modules/.bin
of the current project.nyan
โ print nyan cat.server
โ start an HTTP server from a directory.
Note: Add your git user data and custom settings to
~/.gitlocal
.
git a
โgit add
โ patch mode for specified files.git ua
โgit reset HEAD
โ unstage files.git b
โgit branch
โ list, create, or delete branches.git c
โgit commit
โ record changes to the repository.git co
โgit checkout
โ checkout a branch or paths to the working tree.git ap
โgit add -p
โ add file contents to the index.git ca
โgit commit -a
โ commit with automatically stage files that have been modified and deleted.git cm
โgit commit -m
โ commit with commit message.git cam
โgit commit -am
โ add all files and commit with message.git s
โgit status -sb
โ short status with current branch.git master
โ go tomaster
branch and pull from remote.git develop
โ go todevelop
branch and pull from remote.git git
โ do not complain aboutgit git
.git l
โ commits log with pretty single line format.git ll
โ log with list of changed files for each commit.git ignore
โ ignore files: append file to.gitignore
.git this
โ initialize, add all files and commit.git amend
โ amend last commit.git redo
โ amend last commit with its original message.git undo
โreset --mixed HEAD^
โ reset index changes, but not the working tree.git discard
โcheckout --
โ discard changes.git contrib
โ list of contributors and how many commits each person has.git today
โ see how many lines of code you have written today.git stat
โ how many lines of code in repo.git sync
โ pull and push changes from/to remote.git-root
โ go to repo root.git-cleanup [--force]
โ removes old Git branches.git-fork <original-author>
โ add remote upstream.git-upstream [branch]
โ sync branch with upstream (as defaultmaster
).