DEV Community

hardyweb
hardyweb

Posted on

1

Accidently create file name "\" in development folder

Assalamualaikum

Semalam, terjumpa satu kes, dimana, aku tak dapat clone sistem dari git repository.

Git respon

Cloning into 'xxxxx'...
Username for  
Password for  
remote: Enumerating objects: 2644, done.
remote: Counting objects: 100% (2644/2644), done.
remote: Compressing objects: 100% (1677/1677), done.
remote: Total 2644 (delta 1725), reused 1555 (delta 913)
Receiving objects: 100% (2644/2644), 7.68 MiB | 958.00 KiB/s, done.
Resolving deltas: 100% (1725/1725), done.
**error: Invalid path '\' **
Checking out files: 100% (827/827), done.
Enter fullscreen mode Exit fullscreen mode

apa sebenarnya yang berlaku adalah, aku secara tidak sengaja mencipta atau simpan file dengan nama "\" dan telah pull file tersebut ke dalam repository.

Cara baiki,

  1. Git pull
  2. rm "\"
  3. Git commit -am "lorem ipsum"
  4. git push origin main.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay