I have a fpga project, it has many folders and files. I want to manage some
of the files to git repo.
I try to use one .gitignore file to include some sub-folder files, but
failed.
My folder file tree is something like this:
#############
my_fpga_pro/
.git/
.gitignore
a.v
b.v
hdmi_rx/
pakage_ip060/
a.xci
ip_b/
b.xci
design_hdmi.sdk/
src/
a.c
b.c
a.h
design_hdmi.xpr
hdmi_test.v
hdmi_statistics.v
rtl_folder_a/
aa.v
ab.v
#############
My .gitignore file is following:
###############
/*
!/hdmi_rx/
/hdmi_rx/*
!/hdmi_rx/pakage_ip060/
!/hdmi_rx/design_hdmi\.sdk/
##################
I save the .gitignore file and do following:
I expect include 'a.xci' and 'a.c, b.c, a.h', but not my expectation.
#################
[luoy@tteda basic_v3_git]$ git add -v .
add 'hdmi_rx/design_hdmi.xpr'
add 'hdmi_rx/hdmi_statistics.v'
add 'hdmi_rx/hdmi_test.v'
[luoy@tteda basic_v3_git]$ git status -s
A hdmi_rx/design_hdmi.xpr
A hdmi_rx/hdmi_statistics.v
A hdmi_rx/hdmi_test.v
[luoy@tteda basic_v3_git]$ git --version
git version 2.16.4
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.