Skip to content

Instantly share code, notes, and snippets.

@NF1198
Last active August 23, 2018 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NF1198/985175e80f1ec0ae089d3cccb3824591 to your computer and use it in GitHub Desktop.
Save NF1198/985175e80f1ec0ae089d3cccb3824591 to your computer and use it in GitHub Desktop.
git daemon server on-liner - current directory
git-serve() {
echo git daemon: $PWD && git daemon --verbose --export-all --reuseaddr --port=9090 --base-path=$PWD $PWD
}
@NF1198
Copy link
Author

NF1198 commented Aug 23, 2018

Add this to .profile/.bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment