diff --git a/README.md b/README.md index 339e674b91c59ab1cd669b7d41896116aa0fcaca..977eece5b1093acab32a8776a12e84272c5bc02e 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