Forums

Git started in wrong directory

Hello dear team,

Following the steps of the tutorial https://blog.pythonanywhere.com/121/ When I got to creating the git repository, I made the mistake of doing it in my home directory "/ home / pysoft" instead of the newly created app "/ home / pysoft / mysite". Since I don't know the way to go back undoing everything to do it again correctly in the / mysite directory, I have stopped at that point in the tutorial. I will appreciate your help, All the best :)

so you mean you ran git init in the wrong place?

you could delete the /home/pysoft/.git folder, and do git init again in the correct place

Hey, can you tell me how to push project into github repository. I want to make a copy of my whole project in to my github repository. I actually never tried out github, it will be a great help if you told me the commands.

  1. have some code locally (already in a git repo) that you want to push to the github repo
  2. go to github and create a new repo
  3. follow the instructions saying "I have existing code"

Thank you, everything is going fine :)

great, thanks for letting us know!