Question - git commit error

Moderator: mindphp

Raja Pdl
PHP VIP Members
PHP VIP Members
โพสต์: 2241
ลงทะเบียนเมื่อ: 27/05/2024 9:50 am

Question - git commit error

โพสต์ที่ยังไม่ได้อ่าน โดย Raja Pdl »

I am getting this error
when I run git add . , I got like this

โค้ด: เลือกทั้งหมด

warning: in the working copy of 'phpbb/textreparser/plugins/group_description.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/pm_text.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/poll_option.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/poll_title.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/post_text.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/user_signature.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/reparser_interface.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/row_based_plugin.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/tree/nestedset.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/tree/nestedset_forum.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/tree/tree_interface.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/ucp/controller/reset_password.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/user.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/user_loader.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/version_helper.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/viewonline_helper.php', LF will be replaced by CRLF the next time Git touches it
and when I run git commit -m "made changes " , I got

โค้ด: เลือกทั้งหมด

On branch main  

Initial commit  

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .htaccess
        aboutus.php
        adm/
        app.php
        assets/
        bin/
        cache/
        common.php
        composer.json
        composer.lock
        config.php
        config/
        cron.php
        custom_page.php
        docs/
        download/
        example.php
        ext/
        faq.php
        feed.php
        files/
        images/
        includes/
        index.php
        language/
        mcp.php
        memberlist.php
        note.txt
        phpbb/
        phpbb_resistor_calculator_project/
        posting.php
        report.php
        resistor_calculator_form.php
        search.php
        store/
        styles/
        testing.php
        tools_resistor_calculator.sql
        ucp.php
        vendor/
        viewforum.php
        viewonline.php
        viewtopic.php
        web.config

nothing added to commit but untracked files present (use "git add" to track)
How to solve that error ?
Raja Pdl
PHP VIP Members
PHP VIP Members
โพสต์: 2241
ลงทะเบียนเมื่อ: 27/05/2024 9:50 am

Re: Question - git commit error

โพสต์ที่ยังไม่ได้อ่าน โดย Raja Pdl »

Raja Pdl เขียน: 06/06/2024 8:36 am I am getting this error
when I run git add . , I got like this

โค้ด: เลือกทั้งหมด

warning: in the working copy of 'phpbb/textreparser/plugins/group_description.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/pm_text.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/poll_option.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/poll_title.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/post_text.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/plugins/user_signature.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/reparser_interface.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/textreparser/row_based_plugin.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/tree/nestedset.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/tree/nestedset_forum.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/tree/tree_interface.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/ucp/controller/reset_password.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/user.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/user_loader.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/version_helper.php', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'phpbb/viewonline_helper.php', LF will be replaced by CRLF the next time Git touches it
and when I run git commit -m "made changes " , I got

โค้ด: เลือกทั้งหมด

On branch main  

Initial commit  

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .htaccess
        aboutus.php
        adm/
        app.php
        assets/
        bin/
        cache/
        common.php
        composer.json
        composer.lock
        config.php
        config/
        cron.php
        custom_page.php
        docs/
        download/
        example.php
        ext/
        faq.php
        feed.php
        files/
        images/
        includes/
        index.php
        language/
        mcp.php
        memberlist.php
        note.txt
        phpbb/
        phpbb_resistor_calculator_project/
        posting.php
        report.php
        resistor_calculator_form.php
        search.php
        store/
        styles/
        testing.php
        tools_resistor_calculator.sql
        ucp.php
        vendor/
        viewforum.php
        viewonline.php
        viewtopic.php
        web.config

nothing added to commit but untracked files present (use "git add" to track)
How to solve that error ?
Problem solved by pushing only project related files and folders
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 2