tj / tj/git-extras

`git rscp staging` doesn't sync remote unstaged files

Open
#532 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
18.1k
Forks
1.2k
Avg merge
5d 17h
Merged PRs (30d)
1

Description

I was unable to get git rscp staging to sync remote unstaged files to my local repo. Here's the output I get:

$ git rscp staging
receiving file list ... done

sent 8 bytes  received 13 bytes  14.00 bytes/sec
total size is 0  speedup is 0.00

I verified the remote is setup correctly (git fetch works). As a workaround, I was able to just sync the entire remote repo with this:

$ git rscp staging .

Version info:

$ git-extras -v
4.1.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing git rscp staging and compare it with the reported workaround, git rscp staging .. Locate the git rscp staging entry point and trace how the remote unstaged-file path is selected; done means the staging command syncs those files like the explicit . invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.