egg-spaces / egg.spaces

Learn while recreating Google Spaces~
https://docs.google.com/document/d/1UFfcoy4C98IAUxDMgtLSemXcuklz74g4AjhLTVloOKw/edit#
MIT License
5 stars 1 forks source link

Developers' usernames should be added to readme.md #2

Open Hypaethral opened 7 years ago

Hypaethral commented 7 years ago

This is an exercise in using Git to make sure everyone is on the same page!

Without using the web interface, please add your name to the readme.md file.

If you run into any issues, post them here!

Hypaethral commented 7 years ago

Useful links: https://dannguyen.github.io/github-for-portfolios/lessons/clone-github-pages-repo/ https://git-scm.com/downloads https://git-scm.com/docs https://github.com/octocat/Spoon-Knife https://www.youtube.com/watch?v=8KCQe9Pm1kg&spfreload=10 (video explaining git) https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/

ghost commented 7 years ago

I was able to successfully make changes to my local repo but when I tried to push changes to origin master I was met with this loverly error

Permission to egg-spaces/egg.spaces.git denied to "wrong_username".
fatal: unable to access 'https://github.com/egg-spaces/egg.spaces.git/': The requested URL returned error: 403
Hypaethral commented 7 years ago

https://git-scm.com/docs/git-credential-store this might help

ghost commented 7 years ago

Tried running

$ git config credential.helper store --file .stupid-egg-spaces-credentials 

expected username and pwd input prompt. got manpage for git config

Hypaethral commented 7 years ago

If smileyface committers are making a branch before committing, note that your local branch needs to be pushed with a special parameter to create a remote if one doesn't already exist: git push -u origin <branch>

from http://stackoverflow.com/a/6232535/4206756

nimejia commented 7 years ago

Wait, do I need to fork this?

Hypaethral commented 7 years ago

You have a couple workflow options available to you -- since you're a collaborator, you can clone and directly contribute to master if you want.

It's a better practice to clone, make a local branch, commit to your local branch, push to the remote, and then create a pull request. Check out the bottom of https://docs.google.com/document/d/1rzNCgIKifRXT_ZwGKEQ_aupxuX8I045R96ZmclcOv6g/edit for common workflows

Hypaethral commented 7 years ago

Check out #6 for a good discussion about pull requests