diff --git a/NewFile003.txt b/NewFile003.txt deleted file mode 100644 index 1bf3c44..0000000 --- a/NewFile003.txt +++ /dev/null @@ -1,2 +0,0 @@ -This is another new text file. -Here is some text! \ No newline at end of file diff --git a/NewFile_001.txt b/NewFile_001.txt deleted file mode 100644 index 6dfa057..0000000 --- a/NewFile_001.txt +++ /dev/null @@ -1 +0,0 @@ -This is a new file diff --git a/NewFile_002.txt b/NewFile_002.txt deleted file mode 100644 index 5ce0e45..0000000 --- a/NewFile_002.txt +++ /dev/null @@ -1 +0,0 @@ -New file created by Drona diff --git a/README.md b/README.md index 649572c..b4fc122 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,51 @@ # ScratchPost -A test repository intended purely for testing and debugging git setup. \ No newline at end of file +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 https://gitea.iitdh.ac.in:443/kabhijit/ScratchPost.git +``` +If you get errors about HTTPS and self-signed certificates you can try: + +``` +git -c http.sslVerify=false clone https://gitea.iitdh.ac.in:443/kabhijit/ScratchPost.git +``` + +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: +`$ssh git@gitea.iitdh.ac.in` +- If you get a connection refused error, e.g.: +`ssh: connect to host gitea.iitdh.ac.in port 22: Connection refused` +then you need to manually specify the port number, i.e. +`$ssh -p 2222 git@gitea.iitdh.ac.in`. +- 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 gitea.iitdh.ac.in 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 + +Host gitea.iitdh.ac.in + Identityfile ~/.ssh/iitdh-gitea + Port 2222 +``` +- And then git clone should work over ssh as well. Now try +`git clone https://gitea.iitdh.ac.in:443/kabhijit/ScratchPost.git` +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. \ No newline at end of file