git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Problem with two copies of same branch diverging

From
Ed Greenberg <edg@greenberg.org>
Date
Aug 4, 2016, 15:08 UTC
Message-ID
<0aab65de-21a3-eb48-c5b0-3e36d924348a@greenberg.org>
Hi, Thanks for reading my question.

I have two copies of code checked out at the same branch. Desktop and remote server.

I use an IDE that automatically SFTP transfers each save from the desktop to the remote server, so I can run my changes on the server environment.

At the end of the session, I commit the code on my desktop, do a git push to the repo.

When I look at the server, the code there is identical to what's on my desktop box and what I just comitted and pushed, but, of course, git status thinks it's all modified and wants me to either commit it or stash it. In fact, doing a git log on the server doesn't show my latest push. So I need to pull the changes, but I can't because I have pending stuff.

What's a good git workflow for this save-upload-remote test cycle?
Thanks,
-- 
Ed Greenberg
Glens Falls, NY USA
Next: Junio C Hamano
Message 1 of 3 in “Problem with two copies of same branch diverging”
  1. Ed GreenbergAug 4, 2016
  2. Junio C HamanoAug 4, 2016
  3. Junio C HamanoAug 4, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.