Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils/git_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def safe_commit(files, message):
# 3. Commit locally BEFORE pull
run_cmd(["git", "commit", "-m", message])

# 4. Pull with rebase (now safe - working dir is clean)
run_cmd(["git", "pull", "--rebase"])
# 4. Pull with rebase (--autostash handles any uncommitted changes)
run_cmd(["git", "pull", "--rebase", "--autostash"])

# 5. Push
run_cmd(["git", "push"])
Expand Down