Trouble setting with gitHow to remove local (untracked) files from the current Git working tree?View the change history of a file using Git versioningWhat is the difference between 'git pull' and 'git fetch'?How to undo 'git add' before commit?How do I undo the most recent local commits in Git?Find and restore a deleted file in a Git repositoryHow do I force “git pull” to overwrite local files?How do I delete a Git branch locally and remotely?How to revert a Git repository to a previous commitHow do I rename a local Git branch?
How bad would a partial hash leak be, realistically?
What do we gain with higher order logics?
Can a 2nd-level sorcerer use sorcery points to create a 2nd-level spell slot?
How do I calculate APR from monthly instalments?
How do photons get into the eyes?
C SIGINT signal in Linux
Funtion to extract float from different price patterns
Java guess the number
How is TD(0) method helpful? What good does it do?
Meaning of constructor with multiple pairs of parentheses
Word for a small burst of laughter that can't be held back
How can I instantiate a lambda closure type in C++11/14?
Do manufacturers try make their components as close to ideal ones as possible?
Is it legal in the UK for politicians to lie to the public for political gain?
What are the words for people who cause trouble believing they know better?
Is it possible for people to live in the eye of a permanent hypercane?
What happened to all the nuclear material being smuggled after the fall of the USSR?
Did Darth Vader wear the same suit for 20+ years?
Pros and cons of writing a book review?
Can you please explain this joke: "I'm going bananas is what I tell my bananas before I leave the house"?
How to supress loops in a digraph?
What's the logic behind the the organization of Hamburg's bus transport into "rings"?
When writing an error prompt, should we end the sentence with a exclamation mark or a dot?
Should I "tell" my exposition or give it through dialogue?
Trouble setting with git
How to remove local (untracked) files from the current Git working tree?View the change history of a file using Git versioningWhat is the difference between 'git pull' and 'git fetch'?How to undo 'git add' before commit?How do I undo the most recent local commits in Git?Find and restore a deleted file in a Git repositoryHow do I force “git pull” to overwrite local files?How do I delete a Git branch locally and remotely?How to revert a Git repository to a previous commitHow do I rename a local Git branch?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm getting this error when trying to set the git init:
$ git init
error: could not lock config file C:/Users/khaled/Desktop/firstTemplete/.git/config: No such file or directory
fatal: could not set 'core.repositoryformatversion' to '0'
anyone have any idea ?
git github
add a comment |
I'm getting this error when trying to set the git init:
$ git init
error: could not lock config file C:/Users/khaled/Desktop/firstTemplete/.git/config: No such file or directory
fatal: could not set 'core.repositoryformatversion' to '0'
anyone have any idea ?
git github
need more explanation
– Munkhdelger Tumenbayar
Sep 9 '18 at 5:42
add a comment |
I'm getting this error when trying to set the git init:
$ git init
error: could not lock config file C:/Users/khaled/Desktop/firstTemplete/.git/config: No such file or directory
fatal: could not set 'core.repositoryformatversion' to '0'
anyone have any idea ?
git github
I'm getting this error when trying to set the git init:
$ git init
error: could not lock config file C:/Users/khaled/Desktop/firstTemplete/.git/config: No such file or directory
fatal: could not set 'core.repositoryformatversion' to '0'
anyone have any idea ?
git github
git github
asked Sep 9 '18 at 5:26
Khaled ShehataKhaled Shehata
83
83
need more explanation
– Munkhdelger Tumenbayar
Sep 9 '18 at 5:42
add a comment |
need more explanation
– Munkhdelger Tumenbayar
Sep 9 '18 at 5:42
need more explanation
– Munkhdelger Tumenbayar
Sep 9 '18 at 5:42
need more explanation
– Munkhdelger Tumenbayar
Sep 9 '18 at 5:42
add a comment |
3 Answers
3
active
oldest
votes
In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.
- Open your Windows Defender Security Center
- Go to Home
- Click and open "Virus and Threat protection"
- Click and open "Virus and threat Protection Setting"
- Click and open "Manage Controlled folder access" in "Controlled folder access"option
- Turn the "Controlled Folder access" OFF
Run "Git init" from cmd.
DONE!
add a comment |
When git init
is invoked, .git directory is created by GIT and meta information related to the repo including the commits history is created.
This is an issue due to inappropriate write privileges for the current user.
sudo git init
I suggest checking the official documentation for more insights. git-scm.com/docs/git-init
– gurpreet singh chahal
Sep 9 '18 at 5:43
add a comment |
You might not be having sufficient write privileges in the folder. Try using git init with admin access.
- Open terminal with Admin access.
- Go th location of folder.
cd C:/Users/khaled/Desktop/firstTemplete/ - Try git init.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52241610%2ftrouble-setting-with-git%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.
- Open your Windows Defender Security Center
- Go to Home
- Click and open "Virus and Threat protection"
- Click and open "Virus and threat Protection Setting"
- Click and open "Manage Controlled folder access" in "Controlled folder access"option
- Turn the "Controlled Folder access" OFF
Run "Git init" from cmd.
DONE!
add a comment |
In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.
- Open your Windows Defender Security Center
- Go to Home
- Click and open "Virus and Threat protection"
- Click and open "Virus and threat Protection Setting"
- Click and open "Manage Controlled folder access" in "Controlled folder access"option
- Turn the "Controlled Folder access" OFF
Run "Git init" from cmd.
DONE!
add a comment |
In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.
- Open your Windows Defender Security Center
- Go to Home
- Click and open "Virus and Threat protection"
- Click and open "Virus and threat Protection Setting"
- Click and open "Manage Controlled folder access" in "Controlled folder access"option
- Turn the "Controlled Folder access" OFF
Run "Git init" from cmd.
DONE!
In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.
- Open your Windows Defender Security Center
- Go to Home
- Click and open "Virus and Threat protection"
- Click and open "Virus and threat Protection Setting"
- Click and open "Manage Controlled folder access" in "Controlled folder access"option
- Turn the "Controlled Folder access" OFF
Run "Git init" from cmd.
DONE!
answered Mar 24 at 14:21
Muhammad EtisamMuhammad Etisam
2414
2414
add a comment |
add a comment |
When git init
is invoked, .git directory is created by GIT and meta information related to the repo including the commits history is created.
This is an issue due to inappropriate write privileges for the current user.
sudo git init
I suggest checking the official documentation for more insights. git-scm.com/docs/git-init
– gurpreet singh chahal
Sep 9 '18 at 5:43
add a comment |
When git init
is invoked, .git directory is created by GIT and meta information related to the repo including the commits history is created.
This is an issue due to inappropriate write privileges for the current user.
sudo git init
I suggest checking the official documentation for more insights. git-scm.com/docs/git-init
– gurpreet singh chahal
Sep 9 '18 at 5:43
add a comment |
When git init
is invoked, .git directory is created by GIT and meta information related to the repo including the commits history is created.
This is an issue due to inappropriate write privileges for the current user.
sudo git init
When git init
is invoked, .git directory is created by GIT and meta information related to the repo including the commits history is created.
This is an issue due to inappropriate write privileges for the current user.
sudo git init
answered Sep 9 '18 at 5:42
gurpreet singh chahalgurpreet singh chahal
33018
33018
I suggest checking the official documentation for more insights. git-scm.com/docs/git-init
– gurpreet singh chahal
Sep 9 '18 at 5:43
add a comment |
I suggest checking the official documentation for more insights. git-scm.com/docs/git-init
– gurpreet singh chahal
Sep 9 '18 at 5:43
I suggest checking the official documentation for more insights. git-scm.com/docs/git-init
– gurpreet singh chahal
Sep 9 '18 at 5:43
I suggest checking the official documentation for more insights. git-scm.com/docs/git-init
– gurpreet singh chahal
Sep 9 '18 at 5:43
add a comment |
You might not be having sufficient write privileges in the folder. Try using git init with admin access.
- Open terminal with Admin access.
- Go th location of folder.
cd C:/Users/khaled/Desktop/firstTemplete/ - Try git init.
add a comment |
You might not be having sufficient write privileges in the folder. Try using git init with admin access.
- Open terminal with Admin access.
- Go th location of folder.
cd C:/Users/khaled/Desktop/firstTemplete/ - Try git init.
add a comment |
You might not be having sufficient write privileges in the folder. Try using git init with admin access.
- Open terminal with Admin access.
- Go th location of folder.
cd C:/Users/khaled/Desktop/firstTemplete/ - Try git init.
You might not be having sufficient write privileges in the folder. Try using git init with admin access.
- Open terminal with Admin access.
- Go th location of folder.
cd C:/Users/khaled/Desktop/firstTemplete/ - Try git init.
answered Sep 9 '18 at 10:12
Rishabh AgarwalRishabh Agarwal
1,003323
1,003323
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52241610%2ftrouble-setting-with-git%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
need more explanation
– Munkhdelger Tumenbayar
Sep 9 '18 at 5:42