-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
32 lines (24 loc) · 831 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Start a git origin e.g. on github
# PREREQUISITES
# install git
sudo apt install git
# INIT
git init
# OPTIONAL
# COMMIT FILES
git add .
git commit -m "first release"
# REMOTES - example 1 - use github
git remote add origin git@github.com:username/new_repo
git push -u origin gh-pages
# REMOTES - example 2 - use git daemon
git daemon --base-path=. --export-all --verbose
# CONFIG
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
# NOTES
# many options for git, include, file server, ssh, github, gitea, gitlab, gitosis, gogs, git daemon, webdav, apache
# link: http://www.jedi.be/blog/2009/05/06/8-ways-to-share-your-git-repository/
# you can use git worktree to run many copies
# link: https://opensource.com/article/21/4/git-worktree
# user.email can be a URI, e.g. HTTP URI