Share new directory via git repository -


i using git share project across several computers. on 1 machine, create new directory (with various files in it) within project. pushed repository following:

git add directoryname git commit -m "adding new directory" 

judging list of files, seemed commit everything. however, if issue command

git pull 

on machine, new directory doesn't appear. i've tried various other options e.g. git fetch each time says local repository up-to-date. how can pull new directory down repository?

you need push computer commited

git push origin mybranch 

you can add -u flag if want track it, next time use git push push automatically branch there.


Comments