- On GitHub forked ‘EpicGames’ ‘UnrealEngine’.
- Created new branch from ‘promoted’ called it ‘MMpromoted’.
- Made ‘MMpromoted’ default branch.
- Cloned MMpromoted to local.
- Ran ‘Setup.bat’.
- Ran ‘GenerateProjectFiles.bat’.
- Ran ‘UE4.sln’ in Visual Studio 2013 Ultimate. With Development editor and Win64 options.
- Built ‘UE4’
- Pushed ‘MMpromoted’ branch to origin.
- Ran binary ‘UE4Editor.exe’.
Here is where it went bad.
Read best practice to keep in sync is to ‘fetch’ (not pull) from upstream to local branch and then ‘merge’ from that local branch to my local branch then ‘push’ to ‘origin’. So from ‘upstream/promoted’ to ‘promoted’ then merge with ‘MMpromoted’ and then push to GitHub. So I needed to get a local copy of ‘promoted’ to work on and did in Terminal:
git checkout -b promoted origin/promoted
And got the following error in Terminal (below).
And now I can’t checkout ‘MMpromoted’ again in SourceTree and get an error which is posted after the first error.
-
The ‘promoted’ branch shows changes (unstaged files to be committed) but how can that be since I only cloned, committed, and pushed to the ‘MMpromoted’ branch?
-
Was it unwise to change the default branch from ‘release’? If so if I change it back now will there be issues like things that need to be merged which I have no idea what to do with.
-
So how do I go from here? If I commit the unstaged files then that branch is no longer pristine replica of the upstream EpicGames.
Terminal Error:
ANVIL ~/Perforce/Anvil/MM/Master/MMengine (MMpromoted)
$ git branch -a
MMpromoted
remotes/origin/4.0
remotes/origin/4.1
remotes/origin/4.2
remotes/origin/4.3
remotes/origin/4.4
remotes/origin/4.5
remotes/origin/4.6
remotes/origin/4.7
remotes/origin/4.8
remotes/origin/4.9
remotes/origin/HEAD → origin/MMpromoted
remotes/origin/MMpromoted
remotes/origin/master
remotes/origin/promoted
remotes/origin/release
remotes/upstream/4.0
remotes/upstream/4.1
remotes/upstream/4.2
remotes/upstream/4.3
remotes/upstream/4.4
remotes/upstream/4.5
remotes/upstream/4.6
remotes/upstream/4.7
remotes/upstream/4.8
remotes/upstream/4.9
remotes/upstream/master
remotes/upstream/promoted
remotes/upstream/release
ANVIL ~/Perforce/Anvil/MM/Master/MMengine (MMpromoted)
$ git checkout -b promoted origin/promoted
Branch promoted set up to track remote branch promoted from origin.
Switched to a new branch ‘promoted’
Checking dependencies (excluding Mac, Android, Linux)…
The following file(s) have been modified:
Engine/Binaries/DotNET/DotNETUtilities.dll
Engine/Binaries/DotNET/EnvVarsToXML.exe
Engine/Binaries/DotNET/UnrealBuildTool.exe
Engine/Binaries/DotNET/UnrealBuildTool.exe.config
Engine/Binaries/Win64/UnrealHeaderTool.exe
Engine/Binaries/Win64/UnrealHeaderTool-Core.dll
Engine/Binaries/Win64/UnrealHeaderTool-CoreUObject.dll
Engine/Binaries/Win64/UnrealHeaderTool-Json.dll
Engine/Binaries/Win64/UnrealHeaderTool-Projects.dll
Engine/Build/Build.version
Engine/Plugins/ScriptGeneratorPlugin/Binaries/Win64/UnrealHeaderTool-ScriptGeneratorPlugin.dll
Re-run with the --force parameter to overwrite them.
Updating dependencies: 100% (76/76), 17.1 MiB cached, done.
ANVIL ~/Perforce/Anvil/MM/Master/MMengine (promoted)
$
SourceTree error:
git -c diff.mnemonicprefix=false -c core.quotepath=false checkout MMpromoted
error: The following untracked working tree files would be overwritten by checkout:
Engine/Source/ThirdParty/FreeType2/FreeType2-2.4.12/src/freetype-2.4.12.tar.gz
Engine/Source/ThirdParty/FreeType2/FreeType2-2.6/Src/freetype-2.6.tar.gz
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_bsddb.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_ctypes.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_ctypes_test.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_elementtree.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_hashlib.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_msi.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_multiprocessing.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_socket.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_sqlite3.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_ssl.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_testcapi.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/_tkinter.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/bz2.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/pyexpat.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/select.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/unicodedata.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/DLLs/winsound.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/pythonwin/dde.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/pythonwin/win32ui.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/pythonwin/win32uiole.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/simplejson/_speedups.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/sip.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/_win32sysloader.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/_winxptheme.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/mmapfile.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/odbc.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/perfmon.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/servicemanager.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/timer.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win2kras.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32api.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32clipboard.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32console.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32cred.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32crypt.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32event.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32evtlog.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32file.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32gui.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/win32/win32help.pyd
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-pa
Aborting
Completed with errors, see above.