From d5d70a6e86c1d461b87aee6ee3ef098261695cd9 Mon Sep 17 00:00:00 2001 From: nikhil_rayaprolu <nikhil684@gmail.com> Date: Fri, 3 Apr 2020 19:16:23 +0000 Subject: [PATCH] Update README.md --- README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/README.md b/README.md index 339e674..977eece 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,59 @@ You now should be able to see the details of your submission at : [gitlab.aicrowd.com/<YOUR_AICROWD_USER_NAME>/food-challenge-pytorch-baseline/issues](gitlab.aicrowd.com/<YOUR_AICROWD_USER_NAME>/food-challenge-pytorch-baseline/issues) +## Using http instead of ssh (Personal Access Token): + +In order to use http to clone repositories and submit on gitlab: + +a) Create a personal access token + +1. Log in to GitLab. + +2. In the upper-right corner, click your avatar and select Settings. + +3. On the User Settings menu, select Access Tokens. + +4. Choose a name and optional expiry date for the token. + +5. Choose the desired scopes. + +6. Click the Create personal access token button. + +7. Save the personal access token somewhere safe, lets call it XXX for now. + + +Once you leave or refresh the page, you won’t be able to access it again. + +b) to clone a repo use the following command: + +git clone [https://oauth2:XXX@gitlab.aicrowd.com/(username)/(repo_name).git](https://oauth2:XXX@gitlab.aicrowd.com/(username)/(repo_name).git) + +c)submit a solution: +``` +cd into your submission repo on gitlab + +cd (repo_name) + +#Add AICrowd git remote endpoint + +git remote add aicrowd https://oauth2:XXX@gitlab.aicrowd.com/(username)/(repo_name).git + +git push aicrowd master + +# Create a tag for your submission and push + +git tag -am "submission-v0.1" submission-v0.1 + +git push aicrowd master + +git push aicrowd submission-v0.1 + +# Note : If the contents of your repository (latest commit hash) does not change, + +# then pushing a new tag will not trigger a new evaluation. +``` + + **Best of Luck** ## Miscelaneous Resources -- GitLab