I've never used the "add file" feature, what I do to get code into github is:
- create a git repository using
git init - Add the remote github repository using
git remote add origin [email protected]:markus24135/ibmdatascience.git - run
git add -A - run
git push origin -u main
How do I copy code from python into GitHub? - Stack Overflow
Example of a simple and well made Python project on Github
You should checkout the discord.py repository! It's well structured. https://github.com/Rapptz/discord.py
More on reddit.comTrying to copy paste some code from Github. Complete Novice. I have Pycharm.
Is there any way to copy/paste my code into my GitHub?
Github desktop:
-
Press the plus button (top left).
-
Add
-
Choose directory your files are in.
-
Commit to master with summary (bottom left).
-
Press the publish button (top right)
Now every change you make to files in that folder will get used by git and you can push to update the files on the site. You can edit the files on the site after an initial push.
Hope that helps.
More on reddit.comI wish to download and run code from python-chess-analysis/pca.ipynb at 2db57a18efdfd4de18af57fb16102ea359c70342 · mptedesco/python-chess-analysis (github.com) and it's updated pull request (which isn't approved by the author yet).
However, I can't even find a simple way to copy the code. When I try to CTRL + C and CTRL + V into Pycharm everything is enclosed in quotes!!! Sorry for being extremely stupid but is it not possible for me to merge the original and pull request and just download and run the damn thing!?