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;








1















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 ?










share|improve this question






















  • need more explanation

    – Munkhdelger Tumenbayar
    Sep 9 '18 at 5:42

















1















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 ?










share|improve this question






















  • need more explanation

    – Munkhdelger Tumenbayar
    Sep 9 '18 at 5:42













1












1








1








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 ?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 9 '18 at 5:26









Khaled ShehataKhaled Shehata

83




83












  • 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





need more explanation

– Munkhdelger Tumenbayar
Sep 9 '18 at 5:42












3 Answers
3






active

oldest

votes


















0














In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.



  1. Open your Windows Defender Security Center

  2. Go to Home

  3. Click and open "Virus and Threat protection"

  4. Click and open "Virus and threat Protection Setting"

  5. Click and open "Manage Controlled folder access" in "Controlled folder access"option

  6. Turn the "Controlled Folder access" OFF

Run "Git init" from cmd.
DONE!






share|improve this answer






























    1














    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.


  • Use sudo git init

  • Or make the base directory writable for the default user





  • share|improve this answer























    • I suggest checking the official documentation for more insights. git-scm.com/docs/git-init

      – gurpreet singh chahal
      Sep 9 '18 at 5:43



















    0














    You might not be having sufficient write privileges in the folder. Try using git init with admin access.



    1. Open terminal with Admin access.

    2. Go th location of folder.
      cd C:/Users/khaled/Desktop/firstTemplete/

    3. Try git init.





    share|improve this answer























      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
      );



      );













      draft saved

      draft discarded


















      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









      0














      In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.



      1. Open your Windows Defender Security Center

      2. Go to Home

      3. Click and open "Virus and Threat protection"

      4. Click and open "Virus and threat Protection Setting"

      5. Click and open "Manage Controlled folder access" in "Controlled folder access"option

      6. Turn the "Controlled Folder access" OFF

      Run "Git init" from cmd.
      DONE!






      share|improve this answer



























        0














        In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.



        1. Open your Windows Defender Security Center

        2. Go to Home

        3. Click and open "Virus and Threat protection"

        4. Click and open "Virus and threat Protection Setting"

        5. Click and open "Manage Controlled folder access" in "Controlled folder access"option

        6. Turn the "Controlled Folder access" OFF

        Run "Git init" from cmd.
        DONE!






        share|improve this answer

























          0












          0








          0







          In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.



          1. Open your Windows Defender Security Center

          2. Go to Home

          3. Click and open "Virus and Threat protection"

          4. Click and open "Virus and threat Protection Setting"

          5. Click and open "Manage Controlled folder access" in "Controlled folder access"option

          6. Turn the "Controlled Folder access" OFF

          Run "Git init" from cmd.
          DONE!






          share|improve this answer













          In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.



          1. Open your Windows Defender Security Center

          2. Go to Home

          3. Click and open "Virus and Threat protection"

          4. Click and open "Virus and threat Protection Setting"

          5. Click and open "Manage Controlled folder access" in "Controlled folder access"option

          6. Turn the "Controlled Folder access" OFF

          Run "Git init" from cmd.
          DONE!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 24 at 14:21









          Muhammad EtisamMuhammad Etisam

          2414




          2414























              1














              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.


            • Use sudo git init

            • Or make the base directory writable for the default user





            • share|improve this answer























              • I suggest checking the official documentation for more insights. git-scm.com/docs/git-init

                – gurpreet singh chahal
                Sep 9 '18 at 5:43
















              1














              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.


            • Use sudo git init

            • Or make the base directory writable for the default user





            • share|improve this answer























              • I suggest checking the official documentation for more insights. git-scm.com/docs/git-init

                – gurpreet singh chahal
                Sep 9 '18 at 5:43














              1












              1








              1







              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.


            • Use sudo git init

            • Or make the base directory writable for the default user





            • share|improve this answer













              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.


            • Use sudo git init

            • Or make the base directory writable for the default user






            • share|improve this answer












              share|improve this answer



              share|improve this answer










              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


















              • 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












              0














              You might not be having sufficient write privileges in the folder. Try using git init with admin access.



              1. Open terminal with Admin access.

              2. Go th location of folder.
                cd C:/Users/khaled/Desktop/firstTemplete/

              3. Try git init.





              share|improve this answer



























                0














                You might not be having sufficient write privileges in the folder. Try using git init with admin access.



                1. Open terminal with Admin access.

                2. Go th location of folder.
                  cd C:/Users/khaled/Desktop/firstTemplete/

                3. Try git init.





                share|improve this answer

























                  0












                  0








                  0







                  You might not be having sufficient write privileges in the folder. Try using git init with admin access.



                  1. Open terminal with Admin access.

                  2. Go th location of folder.
                    cd C:/Users/khaled/Desktop/firstTemplete/

                  3. Try git init.





                  share|improve this answer













                  You might not be having sufficient write privileges in the folder. Try using git init with admin access.



                  1. Open terminal with Admin access.

                  2. Go th location of folder.
                    cd C:/Users/khaled/Desktop/firstTemplete/

                  3. Try git init.






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 9 '18 at 10:12









                  Rishabh AgarwalRishabh Agarwal

                  1,003323




                  1,003323



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                      Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript