I am using Google VM(linux) to run some codes in my git repository. I manually added a .gitignore file in my repository via web, and then tried to perform "git pull" in my VM. However even though git status shows my branch is up-to-date, the newly added .gitignore file is not pulled or cannot be seen in my VM. What am I doing wrong?
Thanks for any help!
I think what you are doing wrong is using plain ls
. .gitignore
is a hidden file. Try with ls -a
and it should show up.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.