missing folder in repository after git add -
i'm using folder containing software development kit (sdk), , tried git folder in laptop use git remote. used git add *
. seemed worked well, received no error or warning. cloned remote folder, , tried compile, got error saying files missing. turned out folder missing in git.
any idea did wrong ?
cd /home/ubuntu/backup mkdir yamit cd yamit git init git add * git commit -m "first backup" git remote add yamit /home/ubuntu/backup/yamit.git git push -u yamit master
whenever have missing resource after git add, can check if part of .gitignore
git check-ignore
(git 1.8.4+):
git check-ignore -v path/to/missing/ressource
simply modify .gitignore
removing line ignore resource need.
then add , commit again.
if don't want modify .gitignore
file,
git add -f . # or git add -f path/to/missing/*
that can force ignored resources added index anyway.
Comments
Post a Comment