Browse Source

Cleaning up, adding some useful documentation

4 changed files with 49 additions and 5 deletions
  1. +0
  2. +0
  3. +0
  4. +49

+ 0
- 2
NewFile003.txt View File

@ -1,2 +0,0 @@
This is another new text file.
Here is some text!

+ 0
- 1
NewFile_001.txt View File

@ -1 +0,0 @@
This is a new file

+ 0
- 1
NewFile_002.txt View File

@ -1 +0,0 @@
New file created by Drona

+ 49
- 1 View File

@ -1,3 +1,51 @@
# ScratchPost
A test repository intended purely for testing and debugging git setup.
This is a test repository intended purely for testing and debugging git setup. To test your git setup, you need to follow the steps below:
### Cloning existing repositories
#### 1. Over HTTPS:
Try to run the following command:
git clone
If you get errors about HTTPS and self-signed certificates you can try:
git -c http.sslVerify=false clone
If this command succeeds you should see a "done" message at the end.
#### 2. Over SSH:
- Setup an SSH keypair for Gitea.
- Try to log into the server via SSH as the user git:
- If you get a connection refused error, e.g.:
`ssh: connect to host port 22: Connection refused`
then you need to manually specify the port number, i.e.
`$ssh -p 2222`.
- Successful authentication should give you a message like this:
PTY allocation request failed on channel 0
Hi there, username! You`ve successfully authenticated with the key named sshket-name, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.
Connection to closed.
- Once you confirm that you are able to log into Gitea via SSH as user git, just create a config file to tell SSH to use these details everytime
# File: ~/.ssh/config
#AddKeysToAgent yes
Identityfile ~/.ssh/iitdh-gitea
Port 2222
- And then git clone should work over ssh as well. Now try
`git clone`
which will let you clone this repo as a test.
### Git Push
If git clone has worked, git push should work too. If it does not, it certainly means you do not have write access on the repo you are trying to access. Please don't try to push to this repo, and don't ask for write permissions on this repo.