Questions tagged [git-init]

Create an empty Git repository or reinitialize an existing one.

55 questions
1
vote
1 answer

Git file doesn't show up after being created in the windows powershell

I created a git folder in the windows power shell using the code: git init, but I can't see the folder where I created it. If git folders are hidden then how can I access them and make them visible because I want them to show up in Visual Studio…
1
vote
1 answer

I made new local git repository but it show this message. fatal: bad revision 'HEAD'

Hi I just made a new git local repository in my local machine. Jon-linux ∴ mkdir git_test Jon-linux ∴ cd git_test Jon-linux ∴ git init Initialized empty Git repository in /home/jonghyeon/git_test/.git/ fatal: bad revision 'HEAD' I want to remove…
Jonghyeon Jeon
  • 119
  • 1
  • 5
1
vote
1 answer

Create custom directories when initializing a Git repo

I want to have the same structure in all new Git repos, for example: repo |- .git (created by git-init) |- src |- doc |- README Of course, in *nix I can have something like alias ginit="git init && mkdir ... && touch ..." Can I have some kind of…
homocomputeris
  • 509
  • 5
  • 18
1
vote
1 answer

How can I create remote repository from local system without creating a repository directly from github portal?

I am a newbie at Git. I am still learning. Here are the steps that I have taken in order to create the repository so far: Navigated to the directory that is going to be associated with the repository. Ran the command: git init Then I checked the…
Code_Ninja
  • 1,729
  • 1
  • 14
  • 38
1
vote
3 answers

Is it possible to specify new local git repository location for existing config?

By default, I typically run git init and have the local repository in the root directory. I store and work with my project files on a small-ish SSD but have a BIG ol' SATA HD on the same machine not doing much. I was thinking I should get into the…
Daveh0
  • 952
  • 9
  • 33
1
vote
1 answer

All of my /User/{username} files and folders are in my .git folder for some reason

So currently I am trying to learn Git and am having a little trouble although many tutorials seem to be thorough and consistent. When I type git init I get /Users/{username}/.git/ which seems to be ok since the tutorials also return the same…
1
vote
3 answers

How can I un-init a folder I already initialized with the Git Shell on my PC?

I created a "Projects" folder where I have all my web dev projects. I used git init on the folder before creating subfolders, which I also used the git init command for. Now I want to treat them independently. How do I un-init the "Projects" folder…
1
vote
3 answers

Creating a new repo/project from a previous cloned project

I cloned an existing repo from Git (Bitbucket) and copied that file to a new location. Now I wanted to push that to an empty repository to Bitbucket as a new project with changes that are related to that project. This happened: git remote add…
Nella
  • 21
  • 1
1
vote
0 answers

After installing oh-my-zsh, I get fatal message when 'git init'

I recently installed oh-my-zsh (using theme 'cordial'). The problem is that when I 'git init' I get this message fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like…
1
vote
1 answer

Where can I get the description of `--shared` option of `git init` command for Windows?

I am reading the Git documentation about the git init command: --shared[=(false|true|umask|group|all|world|everybody|0xxx)] Specify that the Git repository is to be shared amongst several users. This allows users belonging to the same group to…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
1
vote
2 answers

Can git ever send your code to a repo that isn't yours?

Can running git add . git commit -m "message" in a git repo which you've initialized using git init ever result in your code being sent to a repo that is not yours? I am concerned because I did this while not logged in to my git hub account.
yaboi
  • 301
  • 1
  • 7
  • 20
1
vote
1 answer

GIT INIT not creating a working tree

I'm doing a simple git init C:\XXX running from my master machine to be executed on another slave machine. C:\XXX is a path in the slave. The assumption is that it would create a non bare repository as I did not provide a --bare option. Also I…
ARUN NAIR
  • 11
  • 1
1
vote
2 answers

how to undo git init?

I clicked git init in my users folder by mistake, and then everything in my users folder has been turned with a blue question mark. How can I fix this?
chitcha
  • 33
  • 1
  • 1
  • 5
1
vote
3 answers

How do I use "git init" to initialize a new folder?

I want to initialize a folder for a new HTML project. The folder is called HTML. I want to create ".git"(repository?) in that folder. Here is what I keep getting after I put "git init" after my folder name: dyld: lazy symbol binding failed: Symbol…
April1900
  • 21
  • 2
1
vote
1 answer

How come my entire project is not pushed to Github?

I am trying to push an ASP.NET 4.5 MVC 5 project onto Github. For some reason, whenever I do it, it acts like it isn't recursively going through the folders and doesn't push some of the project's sub files. Here is the…
AlbatrossCafe
  • 1,710
  • 6
  • 26
  • 49