How can I delete/remove a file from git repository

Samsul Hoque
2
If you want to delete file/folder only from git use below step:


  1. First,Remove files from local repository.
    git rm -r File-Name
    or, remove files only from local repository but from filesystem
    git rm --cached File-Name
  2. Secondly, Commit changes into local repository.
    git commit -m "unwanted files or some inline comments"   
    
  3. Finally, update/push local changes into remote repository.
    git push 

Tags

Post a Comment

2Comments
  1. Hi everyone, I came across this amazing hacker online called cybec wizard and he did an amazing work on my husband's iphone X after I had the feeling of him cheating on me with a friend of mine. This has been going on for the pasted 3 months before I came across cyber wizard who give me the option of a full cell phone hack that I got access to every information both deleted information of his chats with her. Thanks to CYBER WIZARD and feel free to contact him on cwizard@cyber-wizard.com OR CALL +16479546705 if you are interested to work with him.

    ReplyDelete
  2. Kartu Jackpot 3 Gambar
    Jika player mendapatkan kombinasi kartu 3 gambar ini dan menang melawan bandar, maka player menang di x2 juga.
    asikqq
    dewaqq
    sumoqq
    interqq
    pionpoker
    bandar ceme
    hobiqq
    paito warna terlengkap
    Syair HK

    ReplyDelete
Post a Comment