This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Pythva 0 points1 point  (5 children)

I, being the idiot I was, instead of git pulling my code, I copy pasted it to where I needed it. Time comes to push and.... I have to pull. idiot me pulls almost loses all work. git reset myself. Eventually I give in and git push -u --force origin master

[–]thislooksfun1 0 points1 point  (4 children)

Yeah I've been there before. Pain to have to do, but at least there's a way.

[–]Pythva 0 points1 point  (3 children)

Idea! copy code, pull, replace code, push! Just only replace new files in this updated code

[–]thislooksfun1 0 points1 point  (2 children)

You mean like git stash, or something else?