One question please
I have a project on git with differents branches:
Master Pre Dev ....
I've installed my project files in another server by FTP (not by git pull or git clone) ir order to create a dev enviroment.
The folder of the project in dev enviroment don't have a git repo. Can I set that this folder is a existing repo (dev branch) without do a git pull or git clone?
Go to your project folder. Add a remote
origin
with your existing repository URL.You need to stash (clean working tree and save changes temporary box) your changes before pull the
master
. Stash the changes and Pullmaster
branch changes/commits.Now, retrieve/pop local changes from stash.
Once all is ok then, clean the stash (optional).