#๐ my first small project for GITHUB
162 messages ยท Page 1 of 1 (latest)
@shrewd verge
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Is that the repo? Average-temperature-checker?
yes
ok so it should show instructions on how to commit to your files to your repo
Can you show the steps please?
ok which one did you do and where did you do them in your computer?
the later one...after initializing git in the folder from git
yea you probably forgotten to git add and git commit on your local machine
i did it
yea thats not added yet. The message says these files are not tracked and you have to use git add
run git add .
and hit enter
i dont want to add everything
ok what do you wanna add?
which file is that?
it is commited i think
what is the filename that you think is committed?
type ls and show me the output
type git log and hit enter
type git show --name-only c96970 and hit enter
and show me the output for git log -p -2
ok so the file is word_frequency_counter.py. Is that right?
Show me git remote -v
what error in the name?
Are you referring to the file name? Type ls and show me the output
ok that looks configured.
the "temperature freq counter" is not there.
Double check and confirm you are referring to the correct file before its pushed to your repo
i want to change the name to > temperature freq counter
oh ok. Then just rename the word_frequency_counter.py file to the new filename
let me know when you've done the rename
its done
ok
show me in ls
right. So next run the following commands:
git add temp_frequency_counter.py
git commit -m "Changed filename"
git push -u origin main
you forgot the main after origin
still nothing happene in the github
show me what happens after you ran git push
oh..so it is running different account
I need to see the output after you ran git push -u origin main please
oh ok. its denied.
you guys are sharing the same PC?
she doesnt use github for now...i use it mostly
should consider not sharing the same user account at least on the shared PC
hmmm
IMO, I really don't like this shared setup on one user account
Can you backup your files onto a thumbdrive and then create a separate new user account for yourself?
like when the pc starts..there?
Do you know how to set up a user account?
cuz you're sharing your accounts with your sibling, the configuration could get messed up
i mean ...can i remove my sibling's account for now
i will create a new user account
yea thats better
so..
oh you mean, the new user account is for your sibling?
yes
oh alright then
you'll have to run git config
wait I forgot the full command
oh hang on...
there's actually 1 additional step before git config
you need to set up credentials on your local machine to push to github
did you set up ssh keys?
or git credential manager?
@shrewd verge
yes, from pycharm
how did you set up from pycharm?
If you go to here https://github.com/settings/keys does it show any SSH keys?
interesting. Didn't know Pycharm can do this
This shows that its already configured for git and to github.com
Can you show me a full screenshot of your pycharm?
There could already be a way to quickly and easily push your commits to github without running commands
and?
Oh wait... Double check if the file is properly renamed to what you wanted
Otherwise, expand the "Unversioned Files" to see if the renamed file is there
If its not properly renamed, rename it first and then check the checkbox in "Changes"
Then at the bottom, where you see Commit Message. Enter a commit message like "Changed word_frequency_counter.py to temperature counter file" or whatever you want.
Then click "Commit and Push"
@shrewd verge ?
i renamed the wrong file
Its not in the "Unversioned Files" list?
I can see LIST is in the current project folder. You could move the file from LIST and to the root of the project folder and then rename the file in Pycharm
Oh but its already renamed here so... just move the file to the project root folder
Then check the checkbox in the "Unversioned File" for specifically that file
Did you click "Commit and Push"?
yes
What happened after that? Did anything pop up? Notification? some git log?
But if you have to go, just go. Come back and open a new help thread when you need it
i clicked on commit instead of commit and push
wait
this came
are all going to be pushed if i clicked on the push?
thats kinda nice looking. What does it say if you click on the first "my project" in that list on the left?
good job
np
!close
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.