You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unale to reset local git repository to remote repository once commit added to local git repo re: #1020
Reproduce
# Step 1: Open terminal and checkout a new branch
# add new file, git add, commit change, push change to remote
git checkout -b test
echo 'this is a test' > test.txt
git add .
git commit -m 'adding to remote from terminal'
git push origin X
# Step 2: checkout same branch in jupyterlab, make a change to test.txt, stage and commit (no push to remote)
# Step 3: Back to terminal, use same test branch, make a change to test.txt, git add, commit and push the change to remote
# Step 4: Back to jupyterlab, click on 'Discard All and Pull' button as seen from https://github.com/jupyterlab/jupyterlab-git/pull/1020
Error: Will now show as a popup: Error
remote: Enumerating objects: 3, done. remote: Counting objects: 33% (1/3) remote: Counting objects: 66% (2/3) remote: Counting objects: 100% (3/3) remote: Counting objects: 100% (3/3), done. remote: Total 3 (delta 1), reused 3 (delta 1), pack-reused 0 Unpacking objects: 33% (1/3) Unpacking objects: 66% (2/3) Unpacking objects: 100% (3/3) Unpacking objects: 100% (3/3), done. From XXXX/regression-test-notebooks a5b0396..d3ccd5c test -> origin/test Auto-merging test.txt CONFLICT (content): Merge conflict in test.txt Automatic merge failed; fix conflicts and then commit the result.
Expected behavior
The expected behavior would be for all of the staged, local changes to unstage and revert to the remote version of the file(s). Basically a reset hard on the remote head.
Context
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
# pip list | grep jupyterlab-git
jupyterlab-git 0.34.2
# jupyter labextension list
JupyterLab v3.2.8
@jupyterlab/git v0.34.2 enabled OK (python, jupyterlab-git)
# jupyter server extension list
jupyterlab_git enabled
- Validating jupyterlab_git...
jupyterlab_git 0.34.2 OK
# git --version
git version 2.20.1
The text was updated successfully, but these errors were encountered:
Description
Unale to reset local git repository to remote repository once commit added to local git repo re: #1020
Reproduce
Expected behavior
The expected behavior would be for all of the staged, local changes to unstage and revert to the remote version of the file(s). Basically a reset hard on the remote head.
Context
The text was updated successfully, but these errors were encountered: