Our company decided to move to Stash this week from github. We created all bare repos in stash for the ones in github.
Everything was pushed fine to stash after following the procedure mentioned in the docs here: https://confluence.atlassian.com/display/STASH/Importing+code+from+an+existing+project#Importingcodefromanexistingproject-ImportanexistingGitprojectintoStash
Except for one repo- the release team accidentally created a 'Readme' file on master branch inside the bare repo in stash.
So we removed that 'Readme' file , made a commit to that master in stash remote.
When we tried `git push --all stash` where stash is the name of the remote of stash repo, added to github repo cloned locally. (just like mentioned in the docs above ), it obviously didnt push to master as expected.
It says we need to update master with changes in remote. Use git pull.
Doing a git pull from github remote master branch, that has like 700 commits, it applies each patch, so there are conflicts after each patch.
Solving each conflict and then rebase --continue is really tiresome.
at this point im not sure what exactly to do now.
The situation can be summed up :
- Github remote master has 700 commits.
- Stash remote master 2 commits ( init , and 'remove readme' )
- when doing `git push --all stash` it fails for master branch saying master needs to be updated with changes from remote.
- so did `git pull <github-remote-name> master`
- it applies patch by patch
- that leads to conflicts after each patch is applied .
- so solving each patch by hand and doing `git rebase --continue` is going to take a long long time for 700 commits .
Any suggestions /help appreciated. ;((