Git remote repo lokaal network

op de server git proj maken

mkdir repoName.git
cd repoName.git/
git --bare init
Initialized empty Git repository in /volume1/git/repoName.git/
git update-server-info
cd ..
chown -R loginname repoName.git

clonen proj van server

git clone ssh://login@192.168.0.1/volume1/git/repoName.git

lokaal proj files toevoegen:

git init
git remote add origin ssh://login@192.168.0.1/volume1/git/repoName.git
//git push -f
git config --global push.default simple
// add your files
git add .
git commit -a -m "Initial Commit"
git push -u origin --all

extra:

git remote
bv : origin

git remote -v
origin https://github.com/schacon/ticgit (fetch)
origin https://github.com/schacon/ticgit (push)

push to remote

git push origin master

inspecting

git remote show origin

renaming

$ git remote rename pb paul
$ git remote
origin
paul

removing

$ git remote rm paul
$ git remote
origin