Can you explain me how to use git in case, when I have access to repository:
- How to download repository
- How to push changes in selected branch
- How to select branch to push
I tried these steps
git init
git clone git.repository
git pull develop (where develop is branch)
git add .
git commit -m "m"
git push origin develop
Result is:
* branch develop -> FETCH_HEAD
fatal: refusing to merge unrelated histories
What I do wrong?