villaautos.blogg.se

Git push branch to remote
Git push branch to remote






git push branch to remote

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. 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. 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. What is the correct/easiest way to push small changes to a remote file system without altering your local master branch?Īny help, clarification appreciated as I'm new to git.get remote system files to reflect the local master or local dev branches There is no working branch as the remote repo is bare.Ĭan you locally switch the remote branch that changes the file system? Can I checkout different remote branches somehow?.Why is my local dev branch push not reflected on the file system of the remote but the master is?.I have another local working repo for my web server with a single master branch that i can push to two different remotes with two different file paths. 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 Make a change to a file, stage it, commit it. To push the branch or you can say to push the changes in the branch to the Github repo you have to run this command git push origin






Git push branch to remote