Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-11-06 12:32:08

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

[SOLVED] Git broken on dev branch ?

I tried to git pull to get the latest code. Instead of doing its usual routine, it drops me into an editor (Vi? may be, dunno, never used that one, honest), bitching about wanting a commit message or something. Anything I tried to get out of that editor -no i don’t want to write a commit message, I changed nothing…– failed. I ended up closing the terminal window.

Next in a new terminal window,

git pull
error: Your local changes to the following files would be overwritten by merge:
	textpattern/lib/txplib_misc.php
	textpattern/publish.php
	textpattern/vendors/Textpattern/DB/Data/core.prefs
Please commit your changes or stash them before you merge.
Aborting

I didn’t change those files… What now? Nuke the whole thing, then pull some completely fresh thing?


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#2 2017-11-06 13:20:36

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: [SOLVED] Git broken on dev branch ?

Related

Might be better to re-clone it after the snafu.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2017-11-06 13:29:24

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: [SOLVED] Git broken on dev branch ?

Ok, thanks. I’ll fetch an all fresh one.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#4 2017-11-06 14:11:25

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: [SOLVED] Git broken on dev branch ?

Yeah, if you had pulled the code already which had the erroneous merge in there, you’ll have to re-clone a fresh one. I had to do the same on my home computer.

If you had not pulled that commit prior to the rebase then all should function as expected.

Offline

#5 2017-11-06 14:30:45

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: [SOLVED] Git broken on dev branch ?

Ok, done.

git status
On branch dev
Your branch is up-to-date with 'origin/dev'.
nothing to commit, working tree clean

Was kinda slow tonight, fetching at ~150kbs


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

Board footer

Powered by FluxBB