Is there a way to set the remote repo so that it shows the files pushed by the local branch from the local machine?įor now I have two setups and avoid pushing branches to remotes in both. Only by doing the symbolic-ref statement in the remote/bare_repo/ dir can I get it to reflect the files in the file system. but files don't appear on the remote machine It appears that I can reset remote head etc. I can push this to a remote server with same branch name In the end I am opting for keeping it simple so when I push to master I know my file will be there where I pushed it in the file system. When I say work as I would have expected I mean I push from local branch to remote then login to remote and see my files there in the file system. git add bigmovie.mp4 git commit git push origin master Even though the smallmovie.mp4 file is 241MB, and the bigmovie.mp4 file is 1. git add smallmovie.mp4 git commit cp -v /bigmovie.mp4.
#Install git lfs on remote machine install#
The only thing that worked for what I wanted was below:-ĭone on bare remote repo it then required a pull on local then it worked as I would have expected. git lfs install git lfs track '.mp4' git add. Worked in that it set a remote branch to head, but still did not behave as I would have expected.Īgain seemed to work but did not work as I wanted. The git reset head did not work for my case. In a day or so I will hopefully know better but clarification may help others as well as me.įirst thanks for reply, I have avoided the problem by not pushing a branch anymore. This is cutting edge noobie supposing stuff here people.
![install git lfs on remote machine install git lfs on remote machine](https://speedmedia.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/https://www.jfrog.com/wp-content/uploads/2017/11/If-youre-not-using-Git-LFS_diagram_011.png)
Physically on the remote the file system only shows the file changes when the master is pushed and not the dev branch. So if i diff these confirm that push is correct, I have two remote branches lib/master & lib/dev. Push again and it updates file correctly on remote.Ĭheckout dev branch, make a change there, stage it, commit it, git push lib dev.->reports ok
![install git lfs on remote machine install git lfs on remote machine](https://support.gitkraken.com/img/documentation/git-lfs/lfs-AddPathVariable-2.png)
Make a change to a file, stage it, commit it. I have setup a remote bare repo and added it as a remote to my local as lib.įirst push was to lib from master, worked as expected. I have a local working repo with two branches master & dev. This may be one of those occasions where I find out myself just after having posted this but anyway.
![install git lfs on remote machine install git lfs on remote machine](https://user-images.githubusercontent.com/10953031/28041911-fff08804-657f-11e7-911b-9eb607965c1c.png)
I think I have the same query about pushing to a remote as well and would like it clarified.