|Joachim M. Giæver 7dc04e43d2 Updated read me cause of new server||2 years ago|
|README.md||2 years ago|
|branching_and_merging.md||3 years ago|
|changelog.md||3 years ago|
NOTE! Regards to a new server and a new setup you will have to alter all of your existing
./git/config to use the user
email@example.com instead of
Regards to the change in software where we now support https and ssh with git, and every repository is managed on-site and not back-end through XML-RPC anymore. BY NOW: Use it as you would have used GitHub, and if you're stuck - search for it on Google. Happy go lucky!
Yes you do, so please follow the steps:
$ ssh-keygen -t rsa -b 4096 -C "firstname.lastname@example.org
$ vim ~/.ssh/configand create the Host-entry in the file
Host git.giaever.org HostName git.giaever.org User git.giaever.org IdentityFile <my ssh key file>
chmod 0600 ~/.ssh/config.
$ cat <my ssh key file>.pub
Test your configuration, do:
$ ssh email@example.com
and ensure you get a response like:
PTY allocation request failed on channel 0 Hi there, You've successfully authenticated, but Gogs does not provide shell access. If this is unexpected, please log in with password and setup Gogs under another user. Connection to git.giaever.org closed.
notethe extra /git-directory):
$ git clone "repo url: either ssh or https>"
$ cd ./<repo name> $ git commit -m 'Initial Commit' --allow-empty $ git push && git pull
masterinitially. (But whenevery you make a new branch, this should be executed as well - if you want to push it to remote.)
git push --set-upstream origin master
If you havent set your username as global, you should set them for this repo. Use
--global flag after config to set it globally, for every repo.
git config user.email "My@email" git config user.name "My name"
Then move your source files to the folder (or move the hidden .git folder from this folder, to where your source files is located), and do an initial commit from the directory containing the <.git folder>:
$ git add . $ git commit -am "Added files to project" $ git push
(Note the punctation after
git add, which adds all the files you have placed in this repo.)
You need to be approved to get an GIT account here, and there is no such thing as a registration form, so dont bother look for it.
Well. First of all it "cost money" (if you need several private repos), and if you have the knowlegde; why pay for it? :) Since I'm (and probably the users of this GIT) mostly can't share our code, its better to have our own solution which we can adapt to our needs.