Create an empty Git repository or reinitialize an existing one.
Questions tagged [git-init]
55 questions
0
votes
1 answer
How to cancel init in git
I'm using MacOS and I initialized /User/myAccount into a git repository by mistake. I don't really want that. How can I undo the init and make it back to the original look?

Hongxu Jin
- 817
- 2
- 9
- 16
0
votes
1 answer
What mean the "(2)" for the umask?
Git for Windows.I am reading this 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…

Andrey Bushman
- 11,712
- 17
- 87
- 182
0
votes
1 answer
Double .git folders
Assume a remote repo which filesystem is a folder, say MyRepo, that contains other folders, say A1, A2 and A3, and assume that those folders contains a bunch of files that I am tracking. Assume that I want to clone such a repo in C:\Foo , where Foo…

Barzi2001
- 989
- 8
- 24
0
votes
1 answer
Can I revert to git init if I didn't do an initial commit
I'm new to git and I did not do an initial commit. I had a folder on my machine and ran git init, then git pull from the remote respository, and then committed the changes I had made locally. Is it possible to revert changes wrought by the initial…

Jimmy Long
- 688
- 2
- 9
- 23
-1
votes
1 answer
How to undo git folder I created because of mistake?
I was recently learning the git and windows PowerShell functions. I mistakenly made my Admin folder git repository and it is continuously showing changes I have made since then. Can anyone help me with this problem?

Parag Bandhate
- 11
- 2
-1
votes
1 answer
Git LFS fails with small files
Suppose I have files of different size of type .bin
These files may be large and small.
I want to use git lfs to work with big binary files.
I have folder in which i want to init my repo.
Its Content:
I want LFS to track all files of type .bin…

Isa Dzhumabaev
- 49
- 5
-1
votes
2 answers
What does Git remote look like?
I'm creating a tutorial for my coworkers on 'how to Git', and I added a simple tutorial for add, commit, and push, and now I want them to verify what they did worked.
I thought I would say "Go to the remote folder, and verify the new files are…

Rasmus Bækgaard
- 737
- 2
- 11
- 27
-1
votes
1 answer
Converting SVN repo to Git alternative method
Can I convert a SVN repo to Git in the following method (asking this as an alternative to svn2git program or git-svn command):
Export the folder/SVN content.
CD into the top level folder and initialize a git repository using git init.
Somehow…

Idris.AH
- 410
- 1
- 10
- 22
-2
votes
2 answers
What is the difference between "npm init " and "git init "?
sometimes I get confused what is the differences between npm init and git init when I want to start a project. I do not know where and when I should use each of them?
Can I use them together or I should use them separately?
Should I use them just…

Ellie
- 41
- 5
-5
votes
1 answer
How can I share working repository with another user (push/pull)?
I've cloned a Git repository from Assembla by running:
git clone git@git.assembla.com:[my_project].git
How can I share my working repository (located at /usr/local/project) with another user, so that they can directly fetch/pull from and push to my…

Leonhart 27
- 101
- 3
- 11