Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8872133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:09:08+00:00 2026-06-14T18:09:08+00:00

What is git init for exactly? Must I do it once per computer or

  • 0

What is git init for exactly? Must I do it once per computer or once per project that uses git? I downloaded my project by git clone and got it working, but now it is storing my project also to C:/Users/myUser/git , is that certain folder or I can change it?

I don’t really know much about that folder, it seems to be like a local git repo or something, but what “manages” it, or why it is using that path, can you explain it please?

This is what I understand, fix me if I am incorrect, need to get facts straight:

  1. git init is for every project
  2. The git folder under “Users” is local repo and everytime i do git commit, that folder is updated.
  3. When I do git push , it takes from that local repo, and puts to remote repository.
  4. When I want to update to “HEAD”, I just do git pull
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:09:09+00:00Added an answer on June 14, 2026 at 6:09 pm

    That’s actually a lot of questions and misunderstandings. I’m not sure I’d be able to address them all so I’m only going to address what’s directly asked.

    1. git init is for every project

      Almost correct. git init is used to start using git on a project that’s not under git. For projects that are already under git you use git clone.

    2. The git folder under “Users” is local repo

      Almost correct. The folder is actually .git not git. This comes from the unix convention that all files and folders that start with a dot are considered hidden.

      Secondly, the folder is not under your Users folder. It is under your project folder. So the folder C:/Users/myUser/ is one project. If this is not your intention then you most likely have accidentally executed git init in your User folder.

      Each project has one .git folder in the project’s root directory and that is the project’s repository. This is one of the reasons git is so fast compared to svn or cvs – the entire repository is processed on the local hard disk without any network traffic.

    3. When I do git push , it takes from that local repo, and puts to remote

      Correct, but only for repos that have remotes (which are usually repos that you create by using git clone to copy a remote repo).

      Note that the remote repo does not need to be on another machine. You can git clone a project from a local folder into another folder and then you can push changes from the new folder back to the original folder.

      The git clone command automatically sets up the necessary config for your repo to connect back to a remote. But you can also manually configure a repo set up with git init to connect to a remote.

    4. what “manages” it

      The .git folder manages your project’s repo. Git doesn’t run as a server*. Instead the .git folder acts as your local ‘server’ that all the git commands communicate with. Basically, running a git command edits the contents of the .git folder.

      *note: Remote repos do run servers so you can connect to them. But technically they’re not really git servers. They’re file servers that git can download from and upload to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started project in my first laptop. git init, and start working. Tomorrow i'm
I got this scenario: I created a Git repository. $ git init Cloned an
I just ran the following commands on my Ruby on Rails project: git init
I just did a git init on the root of my new project. Then
Somehow when I git init ed my latest project a month or so ago
So this is how I set up my project: git init --bare Later I
I am trying to run this line out of http://docs.heroku.com/quickstart git init But I
1) I did git init in a folder 2) added some project files 3)
Apparently XCode should recognize a git repo automatically, but after doing git init and
After git init , I added and committed a few files, made some changes,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.