Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment Submission Method #4

Open
ehsan5505 opened this issue Aug 15, 2021 · 8 comments
Open

Assignment Submission Method #4

ehsan5505 opened this issue Aug 15, 2021 · 8 comments

Comments

@ehsan5505
Copy link

ehsan5505 commented Aug 15, 2021

Here are the instructions that would need to be followed (Update Version)

  1. Clone remote repository to setup the repository in your local system (this would also help to upload the changes [assignment] you want to contribute)
    git clone https://github.com/mohammadrajabraza/class-codes-piaic-q3.git
  2. Change the directory to the repository folder
    cd class-codes-piaic-q3
  3. Checkout new local branch (branch name example: assign1/rajabraza-123456)
    git checkout -b assign1/<your-name>-<PIAIC-id>
  4. Create a new project
    cargo new assignment_1
  5. Add the assignment code in the main.rs file
  6. Add the README.md for the explanation
  7. Stage the changes from working directory
    git status add
  8. Commit the staged changes with the exact commit message
    git commit -m "assign1: add assignment 1 solution"
  9. Push the local branch to the remote repo
    git push origin <your local branch name> (e.g. assign1/rajabraza-123456)
@ehsan5505 ehsan5505 changed the title Issue Upload Procedure Assignment Upload Procedure Aug 15, 2021
@ehsan5505
Copy link
Author

Thank you!

@ehsan5505 ehsan5505 reopened this Aug 15, 2021
@ehsan5505
Copy link
Author

For visibility, i have to open it

@mohammadrajabraza
Copy link
Owner

mohammadrajabraza commented Aug 15, 2021

Thanks Ehasn for your efforts. But I have a suggestion, wouldn't it be good if you also describe what's happening in the step? (e.g. 1. Cloning a remote repository we are intended to contribute in, git clone ....
2. Getting into the directory, cd class-code.....
3. Creating a local branch also checking it out, git checkout -b
etc)

Additionally no need of step 5 (i.e. adding .gitignore, since its available in the repo globally)

@ehsan5505
Copy link
Author

ehsan5505 commented Aug 16, 2021

@mohammadrajabraza I think you have already clarified the objective, just add minor tweaks, hope this would help the team!, thanks again for the valuable suggestion.

@uxman051
Copy link

origin assign1/usmanali-piaic141544
Username for 'https://github.com': uxman051
Password for 'https://uxman051@github.com':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/mohammadrajabraza/class-codes-piaic-q3.git/': The requested URL returned error: 403

yeh error aata hey sir kiya karoon ab

@usmanbhatti1947
Copy link

Sir is it closed? as i try to push it gives error 403 permission denied

@jalal-PIAIC124538
Copy link

Here are the instructions that would need to be followed (Update Version)

1. Clone remote repository to setup the repository in your local system (_this would also help to upload the changes [assignment] you want to contribute_)
   `git clone https://github.com/mohammadrajabraza/class-codes-piaic-q3.git`

2. Change the directory to the repository folder
   `cd class-codes-piaic-q3`

3. Checkout new local branch (branch name example: **assign1/rajabraza-123456**)
   `git checkout -b assign1/<your-name>-<PIAIC-id>`

4. Create a new project
   `cargo new assignment_1`

5. Add the assignment code in the main.rs file

6. Add the README.md for the explanation

7. Stage the changes from working directory
   `git status add`

8. Commit the staged changes with the exact commit message
   `git commit -m "assign1: add assignment 1 solution"`

9. Push the local branch to the remote repo
   `git push origin <your local branch name>` (e.g. **assign1/rajabraza-123456**)

Thanks Ehsan.
A quick question please. Since we are pushing a local branch over to a cloned remote repo, we would need authorization to push this branch over to Rajab's repo. If Rajab has not added our Git user ids to his repo as contributors, we may not be able to push anything to his Public Repo.

The last step puts me into Git login shell:

jalal$ git push origin Assignment-01-Jalal-PIAIC123XXXX
Username for 'https://github.co:

If i put my git credentials, login fails. I suspect it is because Rajab has not added my git login name to his repo: Jalal-PIAIC123XXXX. Is this a correct inference?

Jalal.

@jalal-PIAIC124538
Copy link

jalal-PIAIC124538 commented Aug 22, 2021

origin assign1/usmanali-piaic141544
Username for 'https://github.com': uxman051
Password for 'https://uxman051@github.com':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/mohammadrajabraza/class-codes-piaic-q3.git/': The requested URL returned error: 403

yeh error aata hey sir kiya karoon ab

Boss you need to generate a token For login. Git Hub no longer supports Passwords.
To Generate a token for logn, click on your github login icon/image (top right corner) > go to Settings > Next Go to Developer Settings > Then Personal Access Tokens - Select the options and Generate.

Once you have the token, login form your CLI as follows when prompted whilst using git push:
login: https://@github.com/userName/repo.git

Thanks
Jalal

@mohammadrajabraza mohammadrajabraza changed the title Assignment Upload Procedure Assignment Submission Method Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants