0

I'm almost ashamed to ask this but...
I need help with git, not GitHub but just plain git.

So I have Linux on windows because I realised all i need is bash, not all of Linux. So I'm taking a tutorial on git because... I'm a programmer, I need to know this. So I am also doing some demo stuff on my own and... I have no clue where to put the file I want to handle with git. In pretty sure I should put it in the file containing the .git folder, which includes .bash_history, etc. But when I git init and git status, it doesn't see it, so am i doing something wrong?

To be specific the test file is in
C:///Users/...

Comments
  • 2
    Create a new folder for the project. Perform git init in that folder the. Do git add . Then git commit -m "whatever message is" this adds the file to git and creates a commit. The do git remote add origin https://GitHub/whatever/project and last but not least git push origin master
  • 1
    1) Don't touch the .git folder.
    2) NEVER TOUCH THE .GIT FOLDER.
    3) Don't git init in a folder C:/Users folder. Create an empty folder specifically for your project. Create a file in it. Chdir into it. Follow @tankerkiller125 post.
  • 2
    1) Don't touch the .git folder.
    2) NEVER TOUCH THE .GIT FOLDER.
    3) Don't git init in a folder C:/Users folder. Create an empty folder specifically for your project. Create a file in it. Chdir into it. Follow @tankerkiller125 post.
  • 0
    Thank you guys, helpful stuff
  • 0
    First lesson, don't be afraid to ask about this! You're still pretty new to this (I think?) and you're just trying to learn/improve yourself! Believe it or not but except for pushing, pulling and committing I don't know much about git myself!
  • 1
    thank you to devRant's solemn sage mentor, @linuxxx, and yes, relatively new, took an ap class in high school that taught me Java pretty well, worked as IT and did an internship that didn't really produce more than a name/recommendation for my resume, as well as practice/experimentation on my own, so yeah, still a little green.
Add Comment